idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
80,573
protected void performBoottime(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException {<NEW_LINE>// add deployment processors<NEW_LINE>context.addStep(new AbstractDeploymentChainStep() {<NEW_LINE><NEW_LINE>public void execute(DeploymentProcessorTarget processorTarget) {<NEW_LINE...
Mode.ACTIVE).install();
263,722
public void readEntity(Cursor cursor, LocalRepo entity, int offset) {<NEW_LINE>entity.setId(cursor.getLong(offset + 0));<NEW_LINE>entity.setName(cursor.getString(offset + 1));<NEW_LINE>entity.setDescription(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2));<NEW_LINE>entity.setLanguage(cursor.isNull(offse...
(offset + 7) != 0);
1,665,656
public void onSaveInstanceState(Bundle outState) {<NEW_LINE>super.onSaveInstanceState(outState);<NEW_LINE>outState.putLong(BUNDLE_KEY_EVENT_ID, mEventId);<NEW_LINE>outState.putLong(BUNDLE_KEY_START_MILLIS, mStartMillis);<NEW_LINE>outState.putLong(BUNDLE_KEY_END_MILLIS, mEndMillis);<NEW_LINE>outState.putBoolean(BUNDLE_K...
new ArrayList<Integer>(numReminders);
972,631
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {<NEW_LINE>switch(requestCode) {<NEW_LINE>case REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS:<NEW_LINE>{<NEW_LINE>Map<String, Integer> perms = new HashMap<String, Integer>();<NEW_LINE>// Initial<NEW_LINE>perms.put(Manifest.permiss...
permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED;
1,670,444
protected String doIt() throws Exception {<NEW_LINE>m_C_ProjectPhase_ID = getRecord_ID();<NEW_LINE>log.info("doIt - C_ProjectPhase_ID=" + m_C_ProjectPhase_ID);<NEW_LINE>if (m_C_ProjectPhase_ID == 0)<NEW_LINE>throw new IllegalArgumentException("C_ProjectPhase_ID == 0");<NEW_LINE>MProjectPhase fromPhase = new MProjectPha...
(i).getName());
811,574
private void doWriteSignature() throws IOException {<NEW_LINE>// calculate the ByteRange values<NEW_LINE>long inLength = incrementalInput.length();<NEW_LINE>long beforeLength = signatureOffset;<NEW_LINE>long afterOffset = signatureOffset + signatureLength;<NEW_LINE>long afterLength = getStandardOutput().getPos() - (inL...
inLength)] = byteRangeBytes[i];
1,675,657
private void supports(ClassWriter writer) {<NEW_LINE>MethodVisitor visitor = writer.visitMethod(ACC_PUBLIC, "supports", "(Ljava/lang/Class;)Z", null, null);<NEW_LINE>visitor.visitParameter("type", 0);<NEW_LINE>visitor.visitCode();<NEW_LINE>visitor.visitVarInsn(ALOAD, 1);<NEW_LINE>visitor.visitLdcInsn(Type.getObjectType...
0, null, 0, null);
488,850
public void processSystem(ByteProcessor buffer, List<TextLine> sheetLines) {<NEW_LINE>logger.debug("processSystem #{}", system.getId());<NEW_LINE>StopWatch watch = new StopWatch("Texts processSystem #" + system.getId());<NEW_LINE>watch.start("retrieveRawLines");<NEW_LINE>List<TextLine> rawLines = getSystemRawLines(shee...
dump("longLines", longLines, false);
1,202,783
private Instance apply(InstanceEvent event, boolean isNewEvent) {<NEW_LINE>Assert.notNull(event, "'event' must not be null");<NEW_LINE>Assert.isTrue(this.id.equals(event.getInstance()), "'event' must refer the same instance");<NEW_LINE>Assert.isTrue(event.getVersion() >= this.nextVersion(), () -> "Event " + event.getVe...
unsavedEvents = appendToEvents(event, isNewEvent);
492,442
public static void main(String[] args) {<NEW_LINE>// to allow us to set host header explicitly<NEW_LINE>System.setProperty("sun.net.http.allowRestrictedHeaders", "true");<NEW_LINE>// start service 2 first, as it is required by service 1<NEW_LINE>service2Server = SignatureExampleUtil.startServer(routing2(), 9080);<NEW_L...
System.out.println("Signature example: from builder");
1,564,157
private int demangleSymbols(Program program, AddressSetView set, int initialCount, String baseMonitorMessage, DemanglerOptions options, MessageLog log, TaskMonitor monitor) throws CancelledException {<NEW_LINE>int count = initialCount;<NEW_LINE>SymbolTable symbolTable = program.getSymbolTable();<NEW_LINE>SymbolIterator...
demangled, options, log, monitor);
918,765
public static ListCommonGroupResponse unmarshall(ListCommonGroupResponse listCommonGroupResponse, UnmarshallerContext _ctx) {<NEW_LINE>listCommonGroupResponse.setRequestId(_ctx.stringValue("ListCommonGroupResponse.RequestId"));<NEW_LINE>listCommonGroupResponse.setErrorMsg(_ctx.stringValue("ListCommonGroupResponse.Error...
= new ArrayList<CommonGroup>();
861,156
protected void processNioSelections(int selectionCount, final Selector selector, @Nullable ServerSocketChannel server, Map<SocketChannel, TcpNioConnection> connectionMap) {<NEW_LINE>final long now = System.currentTimeMillis();<NEW_LINE>rescheduleDelayedReads(selector, now);<NEW_LINE>if (this.soTimeout > 0 || now >= thi...
) -> "Selection key " + key + " cancelled");
1,132,854
final UpdateLaunchConfigurationResult executeUpdateLaunchConfiguration(UpdateLaunchConfigurationRequest updateLaunchConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateLaunchConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,450,997
public static GetClientsToRestoreResponse unmarshall(GetClientsToRestoreResponse getClientsToRestoreResponse, UnmarshallerContext _ctx) {<NEW_LINE>getClientsToRestoreResponse.setRequestId(_ctx.stringValue("GetClientsToRestoreResponse.RequestId"));<NEW_LINE>getClientsToRestoreResponse.setSuccess(_ctx.booleanValue("GetCl...
("GetClientsToRestoreResponse.Clients[" + i + "].GatewayId"));
446,481
private ObjectWrapper readNewObject() throws IOException {<NEW_LINE>ObjectWrapper ow = new ObjectWrapper();<NEW_LINE>ow.classdesc = readClassDesc();<NEW_LINE>makeRef(ow);<NEW_LINE>ow.data = new ArrayList<Object>(10);<NEW_LINE>LinkedList<ClassDesc> hier = new LinkedList<ClassDesc>();<NEW_LINE>for (ClassDesc cd = ow.clas...
data.addAll(readContents());
1,102,877
final GetResourceEventConfigurationResult executeGetResourceEventConfiguration(GetResourceEventConfigurationRequest getResourceEventConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getResourceEventConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
646,880
private void bindHeaderViewHolder(LoginHeaderViewHolder holder, SiteList sites) {<NEW_LINE>if (!isAdded()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final boolean isWpcom = mAccountStore.hasAccessToken();<NEW_LINE>final boolean hasSites <MASK><NEW_LINE>if (isWpcom) {<NEW_LINE>final AccountModel account = mAccountStore.get...
= sites.size() != 0;
338,992
public void updateUserRole(UserRequest user) {<NEW_LINE>String userId = user.getId();<NEW_LINE>UserGroupExample userGroupExample = new UserGroupExample();<NEW_LINE>userGroupExample.createCriteria().andUserIdEqualTo(userId);<NEW_LINE>List<UserGroup> userGroups = userGroupMapper.selectByExample(userGroupExample);<NEW_LIN...
andEmailEqualTo(user.getEmail());
515,350
public static Element createText(Document doc, Text text) {<NEW_LINE>final var <MASK><NEW_LINE>final var loc = text.getLocation();<NEW_LINE>final var font = text.getValue(DrawAttr.FONT);<NEW_LINE>final var fill = text.getValue(DrawAttr.FILL_COLOR);<NEW_LINE>final Object halign = text.getValue(DrawAttr.HALIGNMENT);<NEW_...
elt = doc.createElement("text");
1,042,841
protected Control createDialogArea(Composite parent) {<NEW_LINE>Composite composite = (Composite) super.createDialogArea(parent);<NEW_LINE>final GridLayout gridLayout = new GridLayout(1, false);<NEW_LINE>composite.setLayout(gridLayout);<NEW_LINE>final Group container = new Group(composite, SWT.NONE);<NEW_LINE>container...
Label(container, SWT.NONE);
658,418
public void grant(Cube cube, Access access) {<NEW_LINE>Util.assertPrecondition(cube != null, "cube != null");<NEW_LINE>assert access == Access.ALL || access == Access.NONE || access == Access.CUSTOM;<NEW_LINE>Util.<MASK><NEW_LINE>LOGGER.trace("Grant " + access + " on cube " + cube.getName());<NEW_LINE>cubeGrants.put(cu...
assertPrecondition(isMutable(), "isMutable()");
752,487
public WorkflowContext continueProcess(Integer processId, String operator, String remark) {<NEW_LINE>Preconditions.checkNotEmpty(operator, "operator cannot be null");<NEW_LINE>Preconditions.checkNotNull(processId, "processId cannot be null");<NEW_LINE>WorkflowContext context = workflowContextBuilder.buildContextForProc...
remark).setTask(task));
1,533,140
final DescribeSlotTypeResult executeDescribeSlotType(DescribeSlotTypeRequest describeSlotTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeSlotTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
615,378
public Collection<V> values() {<NEW_LINE>if (values == null) {<NEW_LINE>values = new AbstractCollection<V>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>@Nonnull<NEW_LINE>public Iterator<V> iterator() {<NEW_LINE>return new MyIterator<V>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>V fieldElement(int offset) {<NEW_LINE>return ...
return UnmodifiableHashMap.this.size();
1,591,471
private static int readSimpleHuffmanCode(int alphabetSizeMax, int alphabetSizeLimit, int[] tableGroup, int tableIdx, State s) {<NEW_LINE>// TODO(eustas): Avoid allocation?<NEW_LINE>int[] codeLengths = new int[alphabetSizeLimit];<NEW_LINE>int[] symbols = new int[4];<NEW_LINE>int maxBits = 1 + log2floor(alphabetSizeMax -...
[symbols[0]] = 1;
1,703,986
protected void parseProcessDefinitionStartEvent(ActivityImpl startEventActivity, Element startEventElement, Element parentElement, ScopeImpl scope) {<NEW_LINE>ProcessDefinitionEntity processDefinition = (ProcessDefinitionEntity) scope;<NEW_LINE>String initiatorVariableName = startEventElement.attributeNS(CAMUNDA_BPMN_E...
signalEventDefinition = startEventElement.element(SIGNAL_EVENT_DEFINITION);
1,601,339
protected AutoScaleVmProfileVO checkValidityAndPersist(AutoScaleVmProfileVO vmProfile) {<NEW_LINE>long templateId = vmProfile.getTemplateId();<NEW_LINE>long autoscaleUserId = vmProfile.getAutoScaleUserId();<NEW_LINE>int destroyVmGraceperiod = vmProfile.getDestroyVmGraceperiod();<NEW_LINE>VirtualMachineTemplate template...
findById(VirtualMachineTemplate.class, templateId);
1,044,344
protected void saveNote(@Nullable ISyncCallback callback) {<NEW_LINE>Log.d(TAG, "saveData()");<NEW_LINE>if (note != null) {<NEW_LINE>final var newContent = getContent();<NEW_LINE>if (note.getContent().equals(newContent)) {<NEW_LINE>if (note.getScrollY() != originalScrollY) {<NEW_LINE>Log.v(TAG, "... only saving new scr...
Log.e(TAG, "note is null");
1,330,385
private JFieldVar createStaticField(EReceiverHolder holder, String prefix, String methodName, String[] values) {<NEW_LINE>String staticFieldName = CaseHelper.camelCaseToUpperSnakeCase(prefix, methodName, null);<NEW_LINE>if (values == null || values.length == 0) {<NEW_LINE>return null;<NEW_LINE>} else if (values.length ...
FINAL, listOfStrings, staticFieldName, asListInvoke);
11,874
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {<NEW_LINE>int width = MeasureSpec.getSize(widthMeasureSpec);<NEW_LINE>int height = MeasureSpec.getSize(heightMeasureSpec);<NEW_LINE>float y = 0;<NEW_LINE>float consumedHeight;<NEW_LINE>float textMargin = DisplayUtils.dpToPx(getContext(), TEXT_MARGIN...
+= fontMetrics.bottom - fontMetrics.top;
556,520
public ODocument toNetworkStream() {<NEW_LINE>ODocument document = new ODocument();<NEW_LINE>document.setTrackingChanges(false);<NEW_LINE>document.field("name", getName());<NEW_LINE>document.field("type", getType().id);<NEW_LINE>document.field("globalId", globalRef.getId());<NEW_LINE>document.field("mandatory", mandato...
document.field("regexp", regexp);
342,873
public void handleMembersViewEvent(int memberListVersion, Collection<MemberInfo> memberInfos) {<NEW_LINE>if (logger.isFinestEnabled()) {<NEW_LINE>MemberListSnapshot <MASK><NEW_LINE>logger.finest("Handling new snapshot with membership version: " + memberListVersion + ", membersString " + membersString(snapshot));<NEW_LI...
snapshot = createSnapshot(memberListVersion, memberInfos);
1,091,927
final GetAttributeValuesResult executeGetAttributeValues(GetAttributeValuesRequest getAttributeValuesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAttributeValuesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
invoke(request, responseHandler, executionContext);
444,693
protected AbstractBeanDefinition parseEndpointAndReturnFilter(Element element, ParserContext parserContext, String tokenServicesRef, String serializerRef) {<NEW_LINE>String resourceId = element.getAttribute("resource-id");<NEW_LINE>String entryPointRef = element.getAttribute("entry-point-ref");<NEW_LINE>String authenti...
BeanDefinitionBuilder.rootBeanDefinition(OAuth2AuthenticationManager.class);
1,424,235
File loadLibraryFromJarToTemp(final String tmpDir) throws IOException {<NEW_LINE>InputStream is = null;<NEW_LINE>try {<NEW_LINE>// attempt to look up the static library in the jar file<NEW_LINE>String libraryFileName = jniLibraryFileName;<NEW_LINE>is = getClass().getClassLoader().getResourceAsStream(libraryFileName);<N...
throw new RuntimeException(libraryFileName + " was not found inside JAR.");
902,869
public boolean onClick(@Nonnull MouseEvent e, int clickCount) {<NEW_LINE>CachedIntentions cachedIntentions = new CachedIntentions(project, psiFile, editor);<NEW_LINE>IntentionListStep step = new IntentionListStep(null, editor, psiFile, project, cachedIntentions);<NEW_LINE>HighlightInfo.IntentionActionDescriptor descrip...
get(0).getFirst();
498,169
private BlockState cutCrop(Level world, BlockPos pos, BlockState state) {<NEW_LINE>if (!AllConfigs.SERVER.kinetics.harvesterReplants.get()) {<NEW_LINE>if (state.getFluidState().isEmpty())<NEW_LINE>return Blocks.AIR.defaultBlockState();<NEW_LINE>return state.getFluidState().createLegacyBlock();<NEW_LINE>}<NEW_LINE>Block...
, Integer.valueOf(0));
1,428,083
public ViewRowIdsOrderedSelection createOrderedSelection(final ViewEvaluationCtx viewEvalCtx, final ViewId viewId, final DocumentFilterList filters, final DocumentQueryOrderByList orderBys, final boolean applySecurityRestrictions, final SqlDocumentFilterConverterContext context) {<NEW_LINE>final QueryLimit queryLimit =...
Stopwatch stopwatch = Stopwatch.createStarted();
1,141,330
protected boolean acceptNavigation() {<NEW_LINE>SessionInfo sessionInfo = RStudioGinjector.INSTANCE.getSession().getSessionInfo();<NEW_LINE>if (!sessionInfo.isVcsAvailable(getVcsId())) {<NEW_LINE>NewProjectResources.Styles styles = NewProjectResources.INSTANCE.styles();<NEW_LINE>VerticalPanel verticalPanel = new Vertic...
constants_.optionsLabel())));
821,808
public List<Address> verifyAddress(Address address) throws AddressVerificationException {<NEW_LINE>if (address.getStandardized() != null && Boolean.TRUE.equals(address.getStandardized())) {<NEW_LINE>// If this address is already standardized, don't waste a call.<NEW_LINE>ArrayList<Address> out = new ArrayList<Address>(...
moduleConfigService.findActiveConfigurationsByType(ModuleConfigurationType.ADDRESS_VERIFICATION);
875,066
final DescribeHostsResult executeDescribeHosts(DescribeHostsRequest describeHostsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeHostsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
208,810
public void endDocument() throws SAXException {<NEW_LINE>if (saxLog.isLoggable(Level.FINE)) {<NEW_LINE>if (getCount() > 1) {<NEW_LINE>saxLog.log(Level.FINE, "endDocument(): {0} elements left", getCount());<NEW_LINE>} else {<NEW_LINE>saxLog.log(Level.FINE, "endDocument()");<NEW_LINE>}<NEW_LINE>}<NEW_LINE>while (getCoun...
.rules().iterator();
1,853,843
private void showConnectedOrConnectingHeaderState(@StringRes int statusText, @Nullable Server country, @NonNull Profile profile) {<NEW_LINE>textConnectedTo.setText(statusText);<NEW_LINE>if (country != null) {<NEW_LINE>countryFlags.setVisibility(View.VISIBLE);<NEW_LINE>textProfile.setVisibility(View.INVISIBLE);<NEW_LINE...
textNotConnectedSuggestion.setVisibility(View.INVISIBLE);
212,833
public void afterPreCap(InvokeChainContext context, Object[] args) {<NEW_LINE>if (UAVServer.instance().isExistSupportor("com.creditease.uav.apm.supporters.SlowOperSupporter")) {<NEW_LINE>AMQP.BasicProperties props = (BasicProperties) args[2];<NEW_LINE>byte[] body = (byte[]) args[3];<NEW_LINE>SlowOperContext slowOperCon...
= new String(body, encoding);
412,670
public static InputStream wrapInput(OWLOntologyDocumentSource source, OWLOntologyLoaderConfiguration configuration) throws OWLOntologyInputSourceException {<NEW_LINE>Optional<InputStream> input = source.getInputStream();<NEW_LINE>if (!input.isPresent() && !source.hasAlredyFailedOnIRIResolution()) {<NEW_LINE>if (source....
BufferedInputStream(input.get());
1,386,311
private static List<String> split(final String str, final String delimiter, final int expectedNumTokens) {<NEW_LINE>final List<String> result;<NEW_LINE>if (str.isEmpty()) {<NEW_LINE>result = new ArrayList<>(1);<NEW_LINE>result.add("");<NEW_LINE>} else if (delimiter.isEmpty()) {<NEW_LINE>result = new ArrayList<>(str.len...
(i, i + 1));
357,894
protected Void doInBackground(Void... params) {<NEW_LINE>List<VulnerabilityTest> tests = VulnerabilityOrganizer.getTests(context);<NEW_LINE>List<VulnerabilityTestResult> results = new ArrayList<>();<NEW_LINE>for (VulnerabilityTest vt : tests) {<NEW_LINE>Log.d(TAG, "Running: " + vt.getCVEorID());<NEW_LINE>boolean vulner...
(vt, vulnerable, x));
162,910
void handleEndpointSocketOptions(Node node, BeanDefinitionBuilder endpointConfigBuilder) {<NEW_LINE>for (Node child : childElements(node)) {<NEW_LINE>String nodeName = cleanNodeName(child);<NEW_LINE>String textContent = getTextContent(child);<NEW_LINE>if ("buffer-direct".equals(nodeName)) {<NEW_LINE>endpointConfigBuild...
("socketBufferDirect", getBooleanValue(textContent));
1,298,258
private void trim() {<NEW_LINE>// shortcut out if nprefs == 0<NEW_LINE>if (nprefs == 0) {<NEW_LINE>allocate(0);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// how many chunks? and how many in last?<NEW_LINE>// but be careful to avoid integer overflow<NEW_LINE>int nchunks = nprefs >> CHUNK_SHIFT;<NEW_LINE>int nlast = nprefs & ...
(items[lci], nlast);
388,654
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Cards cards = new CardsImpl(player.getLibrary().getTopCards(game, source.getManaCostsToPay().getX()));<NEW_LINE>player.moveCards(...
getControllerId(), source, game);
742,882
// Handle incoming Occurrences using a Cloud Pub/Sub subscription<NEW_LINE>public static int pubSub(String subId, long timeoutSeconds, String projectId) throws InterruptedException {<NEW_LINE>// String subId = "my-occurrence-subscription";<NEW_LINE>// long timeoutSeconds = 20;<NEW_LINE>// String projectId = "my-project...
ProjectSubscriptionName.of(projectId, subId);
1,381,727
public void generateReverse(ActionRequest request, ActionResponse response) {<NEW_LINE>try {<NEW_LINE>Context context = request.getContext();<NEW_LINE>Move move = context.asType(Move.class);<NEW_LINE>move = Beans.get(MoveRepository.class).find(move.getId());<NEW_LINE>Map<String, Object> assistantMap = Beans.get(Extract...
TraceBackService.trace(response, e);
824,742
public List<NLGElement> realise(List<NLGElement> elements) {<NEW_LINE>List<NLGElement> realisedElements = new ArrayList<NLGElement>();<NEW_LINE>NLGElement currentElement = null;<NEW_LINE>NLGElement determiner = null;<NEW_LINE>NLGElement prevElement = null;<NEW_LINE>if (elements != null) {<NEW_LINE>for (NLGElement eachE...
setFeature(InternalFeature.DISCOURSE_FUNCTION, function);
1,042,798
public int compareTo(CalVer other) {<NEW_LINE>int result = <MASK><NEW_LINE>if (result == 0) {<NEW_LINE>result = yearAsInt - (other.hasYear() ? other.yearAsInt : 0);<NEW_LINE>}<NEW_LINE>if (result == 0) {<NEW_LINE>result = hasMonth() ? monthAsInt - (other.hasMonth() ? other.monthAsInt : 0) : 0;<NEW_LINE>}<NEW_LINE>if (r...
pattern.compareTo(other.pattern);
1,468,231
public Object clone() throws CloneNotSupportedException {<NEW_LINE>PolarPlot clone = (PolarPlot) super.clone();<NEW_LINE>clone.axes = CloneUtils.clone(this.axes);<NEW_LINE>for (int i = 0; i < this.axes.size(); i++) {<NEW_LINE>ValueAxis axis = (ValueAxis) <MASK><NEW_LINE>if (axis != null) {<NEW_LINE>ValueAxis clonedAxis...
this.axes.get(i);
672,412
private CompletableFuture<?> bulkExec(Statement statement, List<DeferredExecution> toExec) {<NEW_LINE>assert toExec.size() >= 1 : "Must have at least 1 deferred execution for bulk exec";<NEW_LINE>var jobId = UUIDs.dirtyUUID();<NEW_LINE>var routingProvider = new RoutingProvider(Randomness.get().nextInt(), planner.getAwa...
AnalyzedStatement analyzedStatement = firstPreparedStatement.analyzedStatement();
767,273
protected T build(JsonNode node, String path) throws IOException, ConfigurationException {<NEW_LINE>for (Map.Entry<Object, Object> pref : System.getProperties().entrySet()) {<NEW_LINE>final String prefName = (String) pref.getKey();<NEW_LINE>if (prefName.startsWith(propertyPrefix)) {<NEW_LINE>final String configName = p...
, System.getProperty(prefName));
1,441,079
final PutImageTagMutabilityResult executePutImageTagMutability(PutImageTagMutabilityRequest putImageTagMutabilityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putImageTagMutabilityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.SERVICE_ID, "ECR");
145,712
public void run() {<NEW_LINE>testResultsContainer.setVisibility(View.VISIBLE);<NEW_LINE>ImageView ivImage = testResultsContainer.<MASK><NEW_LINE>TextView tvTitle = testResultsContainer.findViewById(R.id.title);<NEW_LINE>TextView tvDescription = testResultsContainer.findViewById(R.id.description);<NEW_LINE>if (resultOk)...
findViewById(R.id.icon);
1,154,856
public static SubscriptionInfo fromSubscription(Subscription subscription) {<NEW_LINE>SubscriptionInfo subscriptionInfo = new SubscriptionInfo();<NEW_LINE>subscriptionInfo.setInterfaceType(subscription.getInterfaceType());<NEW_LINE>subscriptionInfo.setNotifiedEventCount(subscription.getNotifiedEventCount().toString());...
(subscription.getNotifyTimeStamp()));
254,911
private ChannelTypeDTO convertToChannelTypeDTO(ChannelType channelType, Locale locale) {<NEW_LINE>final ConfigDescription configDescription;<NEW_LINE>if (channelType.getConfigDescriptionURI() != null) {<NEW_LINE>configDescription = this.configDescriptionRegistry.getConfigDescription(<MASK><NEW_LINE>} else {<NEW_LINE>co...
channelType.getConfigDescriptionURI(), locale);
1,450,439
public JourneyChannelSettings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>JourneyChannelSettings journeyChannelSettings = new JourneyChannelSettings();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken tok...
String currentParentElement = context.getCurrentParentElement();
266,576
public void marshall(ActionExecution actionExecution, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (actionExecution == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(actionExecution.getActionExecutionId(),...
actionExecution.getExternalExecutionId(), EXTERNALEXECUTIONID_BINDING);
1,667,468
final DeleteIdentitiesResult executeDeleteIdentities(DeleteIdentitiesRequest deleteIdentitiesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteIdentitiesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteIdentities");
1,716,553
public void run(RegressionEnvironment env) {<NEW_LINE>EventRepresentationChoice rep = EventRepresentationChoice.getEngineDefault(env.getConfiguration());<NEW_LINE>String[] fields = "col1,col2".split(",");<NEW_LINE>String epl = "@public @buseventtype create schema MyEvent as (in1 string, in2 int);\n" + "create schema My...
] { "Z", -1 });
1,758,854
private void readNextChunk() throws IOException {<NEW_LINE>String listingPath = this.objectLocation.getPath();<NEW_LINE>do {<NEW_LINE>try {<NEW_LINE>ObjectsApi objectsApi = lfsClient.getObjects();<NEW_LINE>ObjectStatsList resp = objectsApi.listObjects(objectLocation.getRepository(), objectLocation.getRef(), false, next...
collect(Collectors.toList());
1,822,820
public ServiceResponse serviceImpl(Query post, HttpServletResponse response, Authorization rights, JsonObjectWithDefault permissions) throws APIException {<NEW_LINE>JSONObject json = new JSONObject(true);<NEW_LINE>json.put("accepted", false);<NEW_LINE>String emailId = post.get("emailId", null);<NEW_LINE>// Checking if ...
ClientCredential.Type.access_token, token);
523,616
private String calculateInnerInitializationString(IntrospectedColumn column, FullyQualifiedJavaType javaType) {<NEW_LINE>StringBuilder initializationString = new StringBuilder();<NEW_LINE>// $NON-NLS-1$ //$NON-NLS-2$<NEW_LINE>initializationString.// $NON-NLS-1$ //$NON-NLS-2$<NEW_LINE>append(// $NON-NLS-1$ //$NON-NLS-2$...
, column.getTypeHandler()));
1,426,324
public void startReconnecting(final RouterStub stub) {<NEW_LINE>reconnectorLock.lock();<NEW_LINE>try {<NEW_LINE>InetSocketAddress routerAddress = stub.getGossipRouterAddress();<NEW_LINE>Future<?> f = futures.get(routerAddress);<NEW_LINE>if (f != null) {<NEW_LINE>f.cancel(true);<NEW_LINE>futures.remove(routerAddress);<N...
stub.getGossipRouterAddress(), f);
1,404,605
public void createNewConsumedStockMoveLineList(OperationOrder operationOrder, BigDecimal qtyToUpdate) throws AxelorException {<NEW_LINE>ManufOrderStockMoveService manufOrderStockMoveService = Beans.get(ManufOrderStockMoveService.class);<NEW_LINE>// find planned stock move<NEW_LINE>Optional<StockMove> stockMoveOpt = man...
StockMove stockMove = stockMoveOpt.get();
611,269
public synchronized void addItem(final JComponent panel, final String name) {<NEW_LINE>Dimension panelD = panel.getPreferredSize();<NEW_LINE>// fudge factor seems to be needed to show entire image. A couple minutes of work didn't find where<NEW_LINE>// the offset was coming from<NEW_LINE>int adjustedWidth = panelD.widt...
new Dimension(bodyWidth, bodyHeight));
326,680
public UserData createUser(CreateUserRequest body, String xSdsDateFormat, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' ...
, apiClient.parameterToString(xSdsAuthToken));
32,163
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE><MASK><NEW_LINE>env.assertStatement("s0", statement -> {<NEW_LINE>assertEquals(StatementType.CREATE_EXPRESSION, statement.getProperty(StatementProperty.STATEMENTTYPE));<NEW_LINE>assertEquals("E1", statement.getPro...
env.compileDeploy("@name('s0') @public create expression E1 {''}", path);
1,688,084
protected char[] escape(int cp) {<NEW_LINE>// If a code point maps to a single character, just escape that.<NEW_LINE>if (cp < Character.MIN_SUPPLEMENTARY_CODE_POINT) {<NEW_LINE>return escaper.escape((char) cp);<NEW_LINE>}<NEW_LINE>// Convert the code point to a surrogate pair and escape them both.<NEW_LINE>// Note: Thi...
toChars(cp, surrogateChars, 0);
399,515
public void merge(List<InputBatch> batchGroups, int outputBatchSize) {<NEW_LINE>// Add the buffered batches to a collection that MSorter can use.<NEW_LINE>// The builder takes ownership of the batches and will release them if<NEW_LINE>// an error occurs.<NEW_LINE>builder = new SortRecordBatchBuilder(context.getAllocato...
context.injectUnchecked(ExternalSortBatch.INTERRUPTION_AFTER_SETUP);
159,428
private static String layoutGraph(Function function, FGController controller, FunctionGraph functionGraph, TaskMonitor monitor) throws CancelledException {<NEW_LINE>if (!performSwingThreadRequiredWork(functionGraph)) {<NEW_LINE>// shouldn't happen<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>monitor.setMessage("Performing...
class, "Exception performing graph layout for function " + function, e);
1,016,921
final DescribeChannelMembershipForAppInstanceUserResult executeDescribeChannelMembershipForAppInstanceUser(DescribeChannelMembershipForAppInstanceUserRequest describeChannelMembershipForAppInstanceUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeChannelMembershipForAppInstanceU...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
728,684
public JsonResult execute() {<NEW_LINE>String feedbackQuestionId = getNonNullRequestParamValue(Const.ParamsNames.FEEDBACK_QUESTION_ID);<NEW_LINE>Intent intent = Intent.valueOf(getNonNullRequestParamValue(Const.ParamsNames.INTENT));<NEW_LINE>FeedbackQuestionAttributes question = logic.getFeedbackQuestion(feedbackQuestio...
getRecipientsOfQuestion(question, null, studentAttributes);
1,094,108
public void uploadFile(String httpMethod, String urlString, String localFileName) throws Exception {<NEW_LINE>HttpURLConnection conn = getRawHTTPConnection(urlString);<NEW_LINE>conn.setDoOutput(true);<NEW_LINE>conn.setUseCaches(false);<NEW_LINE>conn.setChunkedStreamingMode(ChunkSize);<NEW_LINE>conn.setRequestMethod(htt...
localFileName).length()));
958,021
protected AdbMySqlColumn convertColumn(Map<String, Object> recordMap, List<String> primaryKeyColumnList) {<NEW_LINE>AdbMySqlColumn column = new AdbMySqlColumn();<NEW_LINE>column.setName(safeToString(recordMap.get("COLUMN_NAME")));<NEW_LINE>column.setNullable(safeToBoolean(recordMap.get("IS_NULLABLE")));<NEW_LINE>column...
recordMap.get("COLLATION_NAME")));
1,352,488
public Node writeDescriptor(Node parent, EjbBundleDescriptorImpl ejbDesc) {<NEW_LINE>Node jarNode = super.writeDescriptor(parent, ejbDesc);<NEW_LINE>Node entrepriseBeansNode = appendChild(jarNode, EjbTagNames.EJBS);<NEW_LINE>for (EjbDescriptor ejb : ejbDesc.getEjbs()) {<NEW_LINE>if (EjbSessionDescriptor.TYPE.equals(ejb...
.MESSAGE_DRIVEN, (EjbMessageBeanDescriptor) ejb);
1,179,460
default void use() {<NEW_LINE>ImmutableExtraCollection.of(ImmutableList.<String>of(), ImmutableMultimap.<Integer, String>of(), ImmutableMultimap.<Integer, String>of(), ImmutableMultimap.<Integer, String>of(), ImmutableBiMap.<Integer, String>of());<NEW_LINE>ImmutableExtraCollection.of();<NEW_LINE>ImmutableExtraCollectio...
indexList().get(1);
1,029,674
public static QuotientFilter deserialize(byte[] bytes) {<NEW_LINE>QuotientFilter ret = new QuotientFilter();<NEW_LINE>ret.QUOTIENT_BITS = bytes[0];<NEW_LINE>ret.REMAINDER_BITS = bytes[1];<NEW_LINE>ret.ELEMENT_BITS = bytes[2];<NEW_LINE>ret.INDEX_MASK = byteArrayToLong(copyOfRange(bytes, 3, 11));<NEW_LINE>ret.REMAINDER_M...
(bytes, 35, 43));
1,610,564
private Integer collapseSampleCopyNumber(final Collection<Genotype> genotypes, final int expectedCopyNumber) {<NEW_LINE>final Map<Integer, Integer> nonRefCopyNumberCounts = genotypes.stream().map(g -> VariantContextGetters.getAttributeAsInt(g, GATKSVVCFConstants.COPY_NUMBER_FORMAT, expectedCopyNumber)).filter(c -> c !=...
c < expectedCopyNumber).count();
679,938
public void markPotentiallyNonNullBit(LocalVariableBinding local) {<NEW_LINE>if (this != DEAD_END) {<NEW_LINE>this.tagBits |= NULL_FLAG_MASK;<NEW_LINE>int position;<NEW_LINE>long mask;<NEW_LINE>if ((position = local.id + this.maxFieldCount) < BitCacheSize) {<NEW_LINE>// use bits<NEW_LINE>mask = 1L << position;<NEW_LINE...
2][vectorIndex] = ~0;
517,126
public void compact(CompactionServiceId service, CompactionJob job, RateLimiter readLimiter, RateLimiter writeLimiter, long queuedTime) {<NEW_LINE>Optional<CompactionInfo> ocInfo = reserveFilesForCompaction(service, job);<NEW_LINE>if (ocInfo.isEmpty())<NEW_LINE>return;<NEW_LINE>var cInfo = ocInfo.get();<NEW_LINE>Stored...
job, cInfo.jobFiles, newFile);
1,622,913
protected void configureForSourceSet(final SourceSet sourceSet, final Pmd task) {<NEW_LINE>task.setDescription("Run PMD analysis for " + sourceSet.getName() + " classes");<NEW_LINE>task.setSource(sourceSet.getAllJava());<NEW_LINE><MASK><NEW_LINE>ConfigurationContainer configurations = project.getConfigurations();<NEW_L...
ConventionMapping taskMapping = task.getConventionMapping();
1,344,119
public static String resolveDownloadUrl(JReleaserContext context, SdkmanAnnouncer announcer, Distribution distribution, Artifact artifact) {<NEW_LINE>String packager = SdkmanAnnouncer.NAME;<NEW_LINE>List<String> keys = Collections.singletonList("skip" + capitalize(packager));<NEW_LINE>if (isSkip(artifact, keys))<NEW_LI...
distribution.getExtraProperty(packager + DOWNLOAD_URL_SUFFIX);
120,275
public void partitionUpdate(PartitionUpdateParam partParam) {<NEW_LINE>InitNeighborPartParam param = (InitNeighborPartParam) partParam;<NEW_LINE>ServerLongAnyRow row = (ServerLongAnyRow) (psContext.getMatrixStorageManager().getRow(param.getPartKey(), 0));<NEW_LINE>long[] keys = param.getKeys();<NEW_LINE>long[][] neighb...
] edgeTypes = param.getEdgeTypeArrays();
349,400
public SnapshotCopyGrant unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>SnapshotCopyGrant snapshotCopyGrant = new SnapshotCopyGrant();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetD...
().unmarshall(context));
649,813
String takeThreadDump() {<NEW_LINE>try {<NEW_LINE>ThreadMXBean threadMXBean = getThreadBean();<NEW_LINE>if (threadMXBean == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ThreadInfo[] threads;<NEW_LINE>Properties prop = getSystemProperties();<NEW_LINE>StringBuilder sb = new StringBuilder(4096);<NEW_LINE>// NOI18N<NE...
] threadIds = threadMXBean.getAllThreadIds();
304,973
private void updateSims(boolean updateAllSims) {<NEW_LINE>// Stop previous computation (if any)<NEW_LINE>stopBackgroundSimulation();<NEW_LINE>FlightConfigurationId curID = document.getSelectedConfiguration().getFlightConfigurationID();<NEW_LINE>extraText.setCalculatingData(true);<NEW_LINE>Rocket duplicate = (Rocket) do...
.getRocket().copy();
1,794,706
public DocumentMetadataConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DocumentMetadataConfiguration documentMetadataConfiguration = new DocumentMetadataConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren...
().unmarshall(context));
766,303
private WritableMap accessTokenResponse(final String providerName, final HashMap<String, Object> cfg, final OAuth1AccessToken accessToken, final String oauthVersion) {<NEW_LINE>WritableMap resp = Arguments.createMap();<NEW_LINE>WritableMap response = Arguments.createMap();<NEW_LINE>Log.d(TAG, "Credential raw response: ...
"access_token", accessToken.getToken());
788,182
public void beforePreCap(InvokeChainContext context, Object[] args) {<NEW_LINE>String clazz = "com.lambdaworks.redis.RedisAsyncConnectionImpl";<NEW_LINE>int num = -1;<NEW_LINE>StackTraceElement[] stacktrace = Thread.currentThread().getStackTrace();<NEW_LINE>for (int i = 0; i < stacktrace.length; i++) {<NEW_LINE>if (sta...
, System.getProperty("com.creditease.uav.invokechain.code.redis.lettuce.class.2"));
2,690
public void nodeCrashedHandler(Kms kms, boolean mustRemoveMediaNode) {<NEW_LINE>kms.setHasTriggeredNodeCrashedEvent(true);<NEW_LINE>final long timeOfKurentoDisconnection = kms.getTimeOfKurentoClientDisconnection();<NEW_LINE>final List<String> affectedSessionIds = kms.getKurentoSessions().stream().map(session -> session...
",", "[", "]")));
14,826
private void processTrackHeader(@NotNull SequentialReader reader) throws IOException {<NEW_LINE>// ISO/IED 14496-12:2015 pg.7<NEW_LINE>int version = reader.getUInt8();<NEW_LINE>// flags<NEW_LINE>reader.skip(3);<NEW_LINE>// ISO/IED 14496-12:2005 pg.17-18<NEW_LINE>long creationTime;<NEW_LINE>long modificationTime;<NEW_LI...
long height = reader.getInt32();
704,641
public static GetHotlineAgentDetailReportResponse unmarshall(GetHotlineAgentDetailReportResponse getHotlineAgentDetailReportResponse, UnmarshallerContext _ctx) {<NEW_LINE>getHotlineAgentDetailReportResponse.setRequestId(_ctx.stringValue("GetHotlineAgentDetailReportResponse.RequestId"));<NEW_LINE>getHotlineAgentDetailRe...
("GetHotlineAgentDetailReportResponse.Data.Columns[" + i + "].Key"));
346,520
private static void loadDetails(View dialogLayout, ThemedActivity activity, MediaDetailsMap<String, String> metadata) {<NEW_LINE>LinearLayout detailsTable = dialogLayout.findViewById(R.id.ll_list_details);<NEW_LINE>int tenPxInDp = Measure.pxToDp(10, activity);<NEW_LINE>// more or less an hundred. Did not used weight fo...
(metadata.getValue(index));