idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,689,972
public static // modified for performance and to allow parsing numbers with leading '+'<NEW_LINE>Integer tryParse(String string, int begin, int end) {<NEW_LINE>if (begin < 0 || end > string.length() || end - begin < 1)<NEW_LINE>return null;<NEW_LINE>int radix = 10;<NEW_LINE>char firstChar = string.charAt(begin);<NEW_LI...
int cap = Integer.MIN_VALUE / radix;
998,177
public void drawU(UGraphic ug) {<NEW_LINE>final StringBounder stringBounder = ug.getStringBounder();<NEW_LINE>final FtileGeometry dim1 = getFtile1().calculateDimension(stringBounder);<NEW_LINE>if (dim1.hasPointOut() == false) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Point2D p1 = getTranslate1(getFtile1(), stringBou...
arrowColor, Arrows.asToRight());
162,155
public ImmutableMultimap<ShippedCandidateKey, InOutId> retrieveShipmentIdsByCandidateKey(@NonNull final Set<ShippedCandidateKey> shippedCandidateKeys) {<NEW_LINE>final Set<ShipmentScheduleId> scheduleIds = shippedCandidateKeys.stream().map(ShippedCandidateKey::getShipmentScheduleId).collect(ImmutableSet.toImmutableSet(...
candidateKey2ShipmentId.putAll(candidateKey, targetShipmentIds);
700,634
private IRubyObject enumerateGraphemeClusters(ThreadContext context, String name, Block block, boolean wantarray) {<NEW_LINE>Ruby runtime = context.runtime;<NEW_LINE>RubyString str = this;<NEW_LINE>Encoding enc = str.getEncoding();<NEW_LINE>if (!enc.isUnicode()) {<NEW_LINE>return enumerateChars(<MASK><NEW_LINE>}<NEW_LI...
context, name, block, wantarray);
531,586
public void read(org.apache.thrift.protocol.TProtocol prot, flushTablet_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(4);<NEW_LINE>if (incoming.get(0)) ...
.lock = iprot.readString();
391,574
private void writeRevisionsFeed(HttpServletRequest request, HttpServletResponse response, ServiceMap serviceMap) throws IOException, FeedException, ServiceException, PublicInterfaceNotFoundException {<NEW_LINE>long poid = Long.parseLong(request.getParameter("poid"));<NEW_LINE>SProject sProject = serviceMap.<MASK><NEW_L...
getServiceInterface().getProjectByPoid(poid);
1,796,651
public Result parseFromQueryString(String queryString) {<NEW_LINE>final ParsedQueryString parsed = parseQueryStringAndValidateSignature(queryString, "SAMLRequest");<NEW_LINE>final Element root = parseSamlMessage(inflate(<MASK><NEW_LINE>if (REQUEST_TAG_NAME.equals(root.getLocalName()) && SAML_NAMESPACE.equals(root.getNa...
decodeBase64(parsed.samlMessage)));
1,844,485
private UnidbgStructure createDyldImageInfo(MachOModule module) {<NEW_LINE>if (emulator.is64Bit()) {<NEW_LINE>int elementSize = UnidbgStructure.calculateSize(DyldImageInfo64.class);<NEW_LINE>Pointer pointer = emulator.getSvcMemory().allocate(elementSize, "notifySingle");<NEW_LINE>DyldImageInfo64 info = new DyldImageInf...
emulator.getSvcMemory())));
443,939
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>if (!(getParentFragment() instanceof CanAcceptNumber)) {<NEW_LINE>throw new RuntimeException("Parent fragment must implement CanAcceptNumber");<NEW_LINE>}<NEW_LINE>Bundle args = getArguments();<NEW_LINE>final String numberTag = args.getString(NUMBER_TAG...
String.valueOf(i + 1);
195,304
public void execute(AppView appView) {<NEW_LINE>logger.info("Removing @kotlin.Metadata annotation where not kept...");<NEW_LINE>ClassCounter originalCounter = new ClassCounter();<NEW_LINE>MemberCounter keptMemberCounter = new MemberCounter();<NEW_LINE>MyKotlinAnnotationStripper kotlinAnnotationStripper = new MyKotlinAn...
appView.libraryClassPool.classesAccept(kotlinAnnotationStripperVisitor);
1,625,357
private void commentElement(TreeElementDecl node) {<NEW_LINE>String tag = node.getName();<NEW_LINE>currentElement = tag;<NEW_LINE>headline1(tag, tag);<NEW_LINE>// try to survive various user tags wrap it in <div><NEW_LINE>// NOI18N<NEW_LINE>s.append(comment == null ? "" : "<div>" + comment + "</div>");<NEW_LINE>comment...
.append(getRefList(tag));
589,187
final GetContainerServiceMetricDataResult executeGetContainerServiceMetricData(GetContainerServiceMetricDataRequest getContainerServiceMetricDataRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getContainerServiceMetricDataRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
(super.beforeMarshalling(getContainerServiceMetricDataRequest));
36,229
public void searchGroups(MethodCall methodCall, final MethodChannel.Result result) {<NEW_LINE>HashMap<String, Object> searchParam = CommonUtil.getParam(methodCall, result, "searchParam");<NEW_LINE>V2TIMGroupSearchParam param = new V2TIMGroupSearchParam();<NEW_LINE>if (searchParam.get("keywordList") != null) {<NEW_LINE>...
) searchParam.get("isSearchGroupName"));
1,628,734
private void initialize() {<NEW_LINE>preferences = MoviescraperPreferences.getInstance();<NEW_LINE>guiSettings = GuiSettings.getInstance();<NEW_LINE>reinitializeAmalgamationPreferencesFromFile();<NEW_LINE>setCurrentlySelectedNfoFileList(new ArrayList<File>());<NEW_LINE>setCurrentlySelectedMovieFileList(new ArrayList<Fi...
Integer) evt.getNewValue());
929,402
public Object parseObject(String text, ParsePosition pos) {<NEW_LINE>Objects.requireNonNull(text, "text");<NEW_LINE>Parsed unresolved;<NEW_LINE>try {<NEW_LINE>unresolved = formatter.parseUnresolved0(text, pos);<NEW_LINE>} catch (IndexOutOfBoundsException ex) {<NEW_LINE>if (pos.getErrorIndex() < 0) {<NEW_LINE>pos.setErr...
), formatter.getResolverFields());
896,176
protected JComponent createCenterPanel() {<NEW_LINE>JPanel mainPanel = new JPanel(new BorderLayout());<NEW_LINE>JPanel panel = <MASK><NEW_LINE>GridBagConstraints constr;<NEW_LINE>constr = new GridBagConstraints();<NEW_LINE>constr.gridx = 0;<NEW_LINE>constr.gridy = 0;<NEW_LINE>constr.anchor = GridBagConstraints.WEST;<NE...
new JPanel(new GridBagLayout());
1,594,990
public ListPublicKeysResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListPublicKeysResult listPublicKeysResult = new ListPublicKeysResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
class).unmarshall(context));
1,659,337
private HttpRequest.Builder createUsersWithListInputRequestBuilder(List<User> user) throws ApiException {<NEW_LINE>// verify the required parameter 'user' is set<NEW_LINE>if (user == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput");<NEW_LINE>}<N...
localVarRequestBuilder.header("Accept", "application/json");
854,784
private VMTemplateVO createTemplateObjectInDB(SystemVMTemplateDetails details) {<NEW_LINE>Long templateId = vmTemplateDao.getNextInSequence(Long.class, "id");<NEW_LINE>VMTemplateVO template = new VMTemplateVO();<NEW_LINE>template.setUuid(details.getUuid());<NEW_LINE>template.setUniqueName(String.format("routing-%s", <M...
String.valueOf(templateId)));
1,681,472
public void onEnforceSLARequest(JobClusterProto.EnforceSLARequest request) {<NEW_LINE>if (logger.isTraceEnabled()) {<NEW_LINE>logger.trace("Enter onEnforceSLA for JobCluster {} with request", this.name, request);<NEW_LINE>}<NEW_LINE>numSLAEnforcementExecutions.increment();<NEW_LINE>long now = request.timeOfEnforcement....
slaEnforcer.enforceSLAMin(activeJobsCount, acceptedJobsCount);
11,296
public static ListAggregateDiscoveredResourcesResponse unmarshall(ListAggregateDiscoveredResourcesResponse listAggregateDiscoveredResourcesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAggregateDiscoveredResourcesResponse.setRequestId(_ctx.stringValue("ListAggregateDiscoveredResourcesResponse.RequestId"));<NEW_LIN...
("ListAggregateDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList[" + i + "].Region"));
1,310,624
public GenericRowFileManager reduce() throws Exception {<NEW_LINE>LOGGER.info("Start reducing on partition: {}", _partitionId);<NEW_LINE>long reduceStartTimeMs = System.currentTimeMillis();<NEW_LINE>GenericRowFileReader fileReader = _fileManager.getFileReader();<NEW_LINE>int numRows = fileReader.getNumRows();<NEW_LINE>...
long dedupFileCreationStartTimeMs = System.currentTimeMillis();
967,855
final DisassociateApplicationFleetResult executeDisassociateApplicationFleet(DisassociateApplicationFleetRequest disassociateApplicationFleetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateApplicationFleetRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.Cl...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,083,880
final ListBillingGroupsResult executeListBillingGroups(ListBillingGroupsRequest listBillingGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listBillingGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
endClientExecution(awsRequestMetrics, request, response);
1,665,660
protected void generateXML(ProjectInfo proj) {<NEW_LINE>String apiname = proj.getName();<NEW_LINE>Javadoc jd = initJavadoc("Analyzing " + apiname);<NEW_LINE>jd.setDestdir(getDestdir());<NEW_LINE>addSourcePaths(jd, proj);<NEW_LINE>// Tell Javadoc which packages we want to scan.<NEW_LINE>// JDiff works with packagenames,...
DocletParam dp3 = dInfo.createParam();
1,622,758
public void drawFigure(Graphics graphics) {<NEW_LINE>graphics.pushState();<NEW_LINE>Rectangle bounds = getBounds();<NEW_LINE>bounds.width--;<NEW_LINE>bounds.height--;<NEW_LINE>// Set line width here so that the whole figure is constrained, otherwise SVG graphics will have overspill<NEW_LINE>setLineWidth(graphics, 1, bo...
gradient = applyGradientPattern(graphics, bounds);
1,815,512
private void wrapCalloutView() {<NEW_LINE>// some hackery is needed to get the arbitrary infowindow view to render centered, and<NEW_LINE>// with only the width/height that it needs.<NEW_LINE>if (this.calloutView == null || this.calloutView.getChildCount() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LinearLayout LL = ...
LL.setOrientation(LinearLayout.VERTICAL);
1,308,558
private List<Long> listStalledVMInTransitionStateOnDisconnectedHosts(final Date cutTime) {<NEW_LINE>final String sql = "SELECT i.* FROM vm_instance as i, host as h WHERE h.status != 'UP' " + "AND i.power_state_update_time < ? AND i.host_id = h.id " + "AND (i.state ='Starting' OR i.state='Stopping' OR i.state='Migrating...
.Status.IN_PROGRESS.ordinal();
921,738
public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'petId' is set<NEW_LINE>if (petId == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// verify the required pa...
throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFileWithRequiredFile");
1,159,090
public static // '[' ('...'|Expression?) ']' Type<NEW_LINE>boolean ArrayOrSliceType(PsiBuilder b, int l) {<NEW_LINE>if (!recursion_guard_(b, l, "ArrayOrSliceType"))<NEW_LINE>return false;<NEW_LINE>if (!nextTokenIs(b, LBRACK))<NEW_LINE>return false;<NEW_LINE>boolean r, p;<NEW_LINE>Marker m = enter_section_(b, l, _NONE_,...
b, l + 1) && r;
103,830
public void visitSerializableProperties(final Object object, final JavaBeanProvider.Visitor visitor) {<NEW_LINE>final PropertyDescriptor[] propertyDescriptors = getSerializableProperties(object);<NEW_LINE>for (final PropertyDescriptor property : propertyDescriptors) {<NEW_LINE>ErrorWritingException ex = null;<NEW_LINE>...
"." + property.getName());
423,000
private CostDetailCreateResult createCostDetailAndAdjustCurrentCosts(final CostDetailCreateRequest request) {<NEW_LINE>final boolean isInboundTrx = request.getQty().signum() >= 0;<NEW_LINE>final CurrentCost currentCosts = utils.getCurrentCost(request);<NEW_LINE>final CostDetailPreviousAmounts <MASK><NEW_LINE>// final C...
previousCosts = CostDetailPreviousAmounts.of(currentCosts);
456,350
public AllowlistOperationResult removeAccounts(final List<String> accounts) {<NEW_LINE>final List<String> normalizedAccounts = normalizeAccounts(accounts);<NEW_LINE><MASK><NEW_LINE>if (inputValidationResult != AllowlistOperationResult.SUCCESS) {<NEW_LINE>return inputValidationResult;<NEW_LINE>}<NEW_LINE>if (!accountAll...
final AllowlistOperationResult inputValidationResult = inputValidation(normalizedAccounts);
1,144,087
ControlSession newControlSession(final long correlationId, final int streamId, final int version, final String channel, final byte[] encodedCredentials, final ControlSessionDemuxer demuxer) {<NEW_LINE>final ChannelUri channelUri = ChannelUri.parse(channel);<NEW_LINE>final String mtuStr = channelUri.get(CommonContext.MT...
termLengthStr = channelUri.get(TERM_LENGTH_PARAM_NAME);
1,662,831
private void execute(JSDynamicObject obj, Object getterV, Object setterV) {<NEW_LINE>DynamicObjectLibrary dynamicObjectLib = dynamicObjectLibrary();<NEW_LINE>JSDynamicObject getter = (JSDynamicObject) getterV;<NEW_LINE>JSDynamicObject setter = (JSDynamicObject) setterV;<NEW_LINE>if ((getterNode == null || setterNode ==...
accessor, attributes | JSProperty.ACCESSOR);
1,263,962
protected void doSourceArchiveUpdates(CompilerSpec compilerSpec, TaskMonitor monitor) throws CancelledException {<NEW_LINE>SourceArchiveUpgradeMap upgradeMap = new SourceArchiveUpgradeMap();<NEW_LINE>for (SourceArchive sourceArchive : getSourceArchives()) {<NEW_LINE>SourceArchive mappedSourceArchive = upgradeMap.getMap...
BuiltInDataTypeManager builtInDTM = BuiltInDataTypeManager.getDataTypeManager();
1,500,977
public void marshall(Job job, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (job == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(job.getAccelerationSettings(), ACCELERATIONSETTINGS_BINDING);<NEW_LINE>prot...
job.getCurrentPhase(), CURRENTPHASE_BINDING);
1,257,417
private void readFieldStatistics(HollowBlobInput in, HollowObjectSchema unfilteredSchema) throws IOException {<NEW_LINE>bitsPerRecord = 0;<NEW_LINE>bitsPerUnfilteredField = new int[unfilteredSchema.numFields()];<NEW_LINE>unfilteredFieldIsIncluded = new boolean[unfilteredSchema.numFields()];<NEW_LINE>int filteredFieldId...
<< bitsPerField[filteredFieldIdx]) - 1;
515,640
public BatchAttachToIndexResponse unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BatchAttachToIndexResponse batchAttachToIndexResponse = new BatchAttachToIndexResponse();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
int originalDepth = context.getCurrentDepth();
235,480
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>((WordPress) getActivity().getApplication()).component().inject(this);<NEW_LINE>if (savedInstanceState != null) {<NEW_LINE>AppLog.d(T.READER, "reader post list > restoring instance state");<NEW_LINE>if (savedInstance...
savedInstanceState.getBoolean(ReaderConstants.KEY_WAS_PAUSED);
448,966
public Request<DescribeClassicLinkInstancesRequest> marshall(DescribeClassicLinkInstancesRequest describeClassicLinkInstancesRequest) {<NEW_LINE>if (describeClassicLinkInstancesRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeCl...
> filtersList = describeClassicLinkInstancesRequest.getFilters();
1,393,064
private static YailList jsonObjectToYail(final String logTag, final JSONObject object) throws JSONException {<NEW_LINE>List<YailList> pairs = new ArrayList<YailList>();<NEW_LINE>// json only allows String keys<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Iterator<String> j = object.keys();<NEW_LINE>while (j.hasNext...
value = object.get(key);
241,529
public void processSave(final IHUContext huContext, final I_M_HU_Trx_Attribute trxAttribute, final Object referencedModel) {<NEW_LINE>if (!HUConstants.DEBUG_07277_processHUTrxAttribute) {<NEW_LINE>// FIXME debuging<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final I_M_HU hu = InterfaceWrapperHelper.create(referencedModel, I_M...
huAttributeExisting = retrieveHUAttribute(huAttributesDAO, trxAttribute);
791,513
private EnumDataType applyEnumMsType(AbstractEnumMsType type) throws PdbException {<NEW_LINE>String fullPathName = type.getName();<NEW_LINE>// // TODO: evaluate whether we do full SymbolPath... see others<NEW_LINE>// SymbolPath fixedPath = getFixedSymbolPath();<NEW_LINE>//<NEW_LINE>// RecordNumber underlyingRecordNumbe...
size() + " available for " + fullPathName);
816,062
public com.amazonaws.services.snowball.model.InvalidNextTokenException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.snowball.model.InvalidNextTokenException invalidNextTokenException = new com.amazonaws.services.snowball.model.InvalidNextTokenException(null);...
int originalDepth = context.getCurrentDepth();
178,903
final SearchDevicesResult executeSearchDevices(SearchDevicesRequest searchDevicesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(searchDevicesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
326,358
public DataFile execute(CommandContext ctxt) throws CommandException {<NEW_LINE>if (!file.getOwner().isFileAccessRequest()) {<NEW_LINE>throw new CommandException(BundleUtil.getStringFromBundle("file.requestAccess.notAllowed"), this);<NEW_LINE>}<NEW_LINE>// if user already has permission to download file or the file is ...
.getStringFromBundle("file.requestAccess.notAllowed.embargoed"), this);
1,286,790
public Mono<Response<AddressResponseInner>> listVipsWithResponseAsync(String resourceGroupName, String name) {<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 (resour...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
1,015,456
public static AggregateFunctionInitArguments createAggregateFunctionInitArgs(final int udafIndex, final FunctionCall functionCall, final KsqlConfig config) {<NEW_LINE>final List<Expression> args = functionCall.getArguments();<NEW_LINE>final List<Object> initArgs = new ArrayList<>(Math.max(0, args.size() - 1));<NEW_LINE...
AggregateFunctionInitArguments(udafIndex, functionConfig, initArgs);
868,013
public void onDescriptorRead(final BluetoothGatt gatt, final BluetoothGattDescriptor descriptor, final int status) {<NEW_LINE>final byte[] data = descriptor.getValue();<NEW_LINE>if (status == BluetoothGatt.GATT_SUCCESS) {<NEW_LINE>log(Log.INFO, () -> "Read Response received from descr. " + descriptor.getUuid() + ", val...
this.onDescriptorRead(gatt, descriptor);
843,304
public NamingEnumeration<SearchResult> search(Name name, String filterExpr, Object[] filterArgs, SearchControls cons) throws NamingException {<NEW_LINE>PartialCompositeDirContext ctx = this;<NEW_LINE>Hashtable<?, ?> env = p_getEnvironment();<NEW_LINE>Continuation cont <MASK><NEW_LINE>NamingEnumeration<SearchResult> ans...
= new Continuation(name, env);
1,251,004
final DescribeRiskConfigurationResult executeDescribeRiskConfiguration(DescribeRiskConfigurationRequest describeRiskConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeRiskConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,328,813
public void startWarmUpThread() {<NEW_LINE>new Thread() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>try {<NEW_LINE>Thread.sleep(500);<NEW_LINE>String internalName = FindBox.class.getName();<NEW_LINE>TypeReference type = metadataSystem.lookupType(internalName);<NEW_LINE>TypeDefinition resolvedType = null;<NEW_LINE...
Luyten.showExceptionDialog("Exception!", e);
1,631,114
public String initNetwork(@Nullable String networkName, @Nullable String networkPrefix) {<NEW_LINE>try {<NEW_LINE>WebTarget webTarget = getTarget(CoordConsts.SVC_RSC_INIT_NETWORK);<NEW_LINE>// postData will close it<NEW_LINE>@SuppressWarnings("PMD.CloseResource")<NEW_LINE>MultiPart multiPart = new MultiPart();<NEW_LINE...
jObj.getString(CoordConsts.SVC_KEY_NETWORK_NAME);
912,293
private void loadTweets(final List<Long> tweetIds, final ViewGroup container, final List<Integer> viewIds) {<NEW_LINE>TweetUtils.loadTweets(tweetIds, new Callback<List<Tweet>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void success(Result<List<Tweet>> result) {<NEW_LINE>final Context context = getActivity();<NEW_...
(viewIds.get(i));
1,318,641
public void initialise() {<NEW_LINE>setAnimationSystem(MenuAnimationSystems.createDefaultSwipeAnimation());<NEW_LINE>WidgetUtil.trySubscribe(this, "close", button -> {<NEW_LINE>final UniverseSetupScreen universeSetupScreen = getManager().createScreen(UniverseSetupScreen.ASSET_URI, UniverseSetupScreen.class);<NEW_LINE>f...
).setMessage("Name Already Used!", "Please use a different name for this world");
694,740
private Optional<Set<BatfishUUID>> toAddrgrpMemberUUIDs(Address_namesContext ctx, FortiosStructureUsage usage, boolean pruneAll) {<NEW_LINE>int line = ctx.start.getLine();<NEW_LINE>Map<String, Address> addressesMap = _c.getAddresses();<NEW_LINE>Map<String, Addrgrp> addrgrpsMap = _c.getAddrgrps();<NEW_LINE>ImmutableSet....
of(addressUuidsBuilder.build());
1,685,805
private Expression transformMethodCallExpression(final MethodCallExpression exp) {<NEW_LINE>ClassNode traitType = getTraitSuperTarget(exp.getObjectExpression());<NEW_LINE>if (traitType != null) {<NEW_LINE>ClassNode helperType = getHelper(traitType);<NEW_LINE>// TraitType.super.foo() -> TraitType$Trait$Helper.foo(this)<...
.equals(ClassHelper.CLASS_Type));
1,282,558
private void createSubmenu(JMenu menu) {<NEW_LINE>Node[] nodes = getActivatedNodes();<NEW_LINE>if (nodes != null && nodes.length == 1) {<NEW_LINE>RADComponentCookie radCookie = nodes[0].getCookie(RADComponentCookie.class);<NEW_LINE>RADComponent comp = (radCookie != null) ? radCookie.getRADComponent() : null;<NEW_LINE>i...
= new ArrayList<JMenuItem>();
1,713,793
public Object call() throws Exception {<NEW_LINE>try {<NEW_LINE>final Object result = task.execute(reqId, serverInstance, manager, database);<NEW_LINE>if (result instanceof Throwable && !(result instanceof OException))<NEW_LINE>// EXCEPTION<NEW_LINE>ODistributedServerLog.debug(this, nodeName, getNodeNameById(reqId.getN...
"Error on executing distributed request %s on local node: %s", e, reqId, task);
984,707
public ExternalTaskQueryBuilder buildQuery(ProcessEngine processEngine) {<NEW_LINE>ExternalTaskQueryBuilder fetchBuilder = processEngine.getExternalTaskService().fetchAndLock(getMaxTasks(), getWorkerId(), isUsePriority());<NEW_LINE>if (getTopics() != null) {<NEW_LINE>for (FetchExternalTaskTopicDto topicDto : getTopics(...
processDefinitionId(topicDto.getProcessDefinitionId());
773,539
private void updateSpawnMode(boolean spawnMode) {<NEW_LINE>wasSpawnMode = spawnMode;<NEW_LINE>((ContainerPoweredSpawner) inventorySlots).setSlotVisibility(!spawnMode);<NEW_LINE>if (spawnMode) {<NEW_LINE>getGhostSlotHandler().getGhostSlots().clear();<NEW_LINE>header = Lang.GUI_SPAWNER_SPAWN.get();<NEW_LINE>progressToolt...
getGhostSlotHandler().getGhostSlots());
797,283
private Object translateAvroRecordToPegasusUnionWithAliases(Object value, UnionDataSchema unionDataSchema, Schema avroSchema) {<NEW_LINE>Schema recordAvroSchema = extractNonnullSchema(avroSchema);<NEW_LINE>GenericRecord record = (GenericRecord) value;<NEW_LINE>Object fieldDiscriminatorValue = <MASK><NEW_LINE>if (fieldD...
record.get(DataSchemaConstants.DISCRIMINATOR_FIELD);
1,161,806
public HeartbeatResponse call() {<NEW_LINE>TPaloBrokerService.Client client = null;<NEW_LINE>TNetworkAddress addr = new TNetworkAddress(broker.ip, broker.port);<NEW_LINE>boolean ok = false;<NEW_LINE>try {<NEW_LINE>client = ClientPool.brokerPool.borrowObject(addr);<NEW_LINE>TBrokerPingBrokerRequest request = new TBroker...
"got exception" : e.getMessage());
89,807
private StringBuilder printSamplePerf(OperationPerfGroup perfGroup) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>boolean firstLine = true;<NEW_LINE>for (int i = 0; i < perfGroup.getOperationPerfs().size(); i++) {<NEW_LINE>OperationPerf operationPerf = perfGroup.getOperationPerfs().get(i);<NEW_LINE>PerfIn...
, operationPerf.getOperation()));
1,488,477
public void encodeMessage(byte[] data) throws NibeHeatPumpException {<NEW_LINE>if (NibeHeatPumpProtocol.isModbus40ReadResponse(data)) {<NEW_LINE>super.encodeMessage(data);<NEW_LINE>coilAddress = ((rawMessage[NibeHeatPumpProtocol.RES_OFFS_DATA + 1] & 0xFF) << 8 | (rawMessage[NibeHeatPumpProtocol.RES_OFFS_DATA + 0] & 0xF...
.RES_OFFS_DATA + 2] & 0xFF);
128,225
protected void writeBarbecue(JRComponentElement componentElement, JRXmlWriter reportWriter) throws IOException {<NEW_LINE>Component component = componentElement.getComponent();<NEW_LINE>BarbecueComponent barcode = (BarbecueComponent) component;<NEW_LINE>JRXmlWriteHelper writer = reportWriter.getXmlWriteHelper();<NEW_LI...
"checksumRequired", barcode.isChecksumRequired());
80,853
protected void computeBarycentricCoordinates(DogArray<Point3D_F64> controlWorldPts, DMatrixRMaj alphas, List<Point3D_F64> worldPts) {<NEW_LINE>alphas.reshape(worldPts.size(), numControl, false);<NEW_LINE>v_temp.reshape(3, 1);<NEW_LINE>A_temp.reshape(3, numControl - 1);<NEW_LINE>for (int i = 0; i < numControl - 1; i++) ...
= p.z - meanWorldPts.z;
274,128
final DisassociateIdentityProviderConfigResult executeDisassociateIdentityProviderConfig(DisassociateIdentityProviderConfigRequest disassociateIdentityProviderConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateIdentityProviderConfigRequest);<NEW_LINE>AWSRequestMetrics awsRe...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,057,175
protected void explore(Method method) {<NEW_LINE>// Children cache<NEW_LINE>HashSet<Set<Constraint<?>>> seenChildren = new HashSet();<NEW_LINE>// WorkList<NEW_LINE>Queue<DSETestCase> testCasesWorkList = createWorkList();<NEW_LINE>// Initial element<NEW_LINE>DSETestCase initialTestCase = testCaseBuildingStrategy.buildIn...
currentTestCase = testCaseSelectionStrategy.getCurrentIterationBasedTestCase(testCasesWorkList);
1,508,312
private boolean printPageEntries(LedgerCache.PageEntries page) {<NEW_LINE>final MutableLong curEntry = new MutableLong(page.getFirstEntry());<NEW_LINE>try (LedgerEntryPage lep = page.getLEP()) {<NEW_LINE>lep.getEntries((entry, offset) -> {<NEW_LINE>while (curEntry.longValue() < entry) {<NEW_LINE>print.<MASK><NEW_LINE>c...
accept("entry " + curEntry + "\t:\tN/A");
1,526,877
public CalculatedLifecycle unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CalculatedLifecycle calculatedLifecycle = new CalculatedLifecycle();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
"unixTimestamp").unmarshall(context));
1,253,344
public void gainFocus(boolean persistanceStatus) {<NEW_LINE>if (!isVisible()) {<NEW_LINE>String lastReplace = replaceTextField.getText();<NEW_LINE>changeSearchBarToBePartOfReplaceBar();<NEW_LINE>SearchComboBoxEditor.changeToOneLineEditorPane((JEditorPane) replaceTextField);<NEW_LINE>addEnterKeystrokeReplaceTo(replaceTe...
.getIncSearchTextField().requestFocusInWindow();
1,840,004
final DescribeClusterResult executeDescribeCluster(DescribeClusterRequest describeClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
invoke(request, responseHandler, executionContext);
660,037
public Class determineRelationshipType(Relationship relationship) {<NEW_LINE>if (TransactionCommand.isDeleted(relationship)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final String type = GraphObject.type.dbName();<NEW_LINE>final Node startNode = relationship.getStartNode();<NEW_LINE>final Node endNode = relationship....
obj = relationship.getProperty(combinedTypeName);
1,568,903
protected void encodeHeaderRowWithoutColumn(FacesContext context, HeaderRow row, DataTable table, boolean expandable, boolean expanded) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String style = row.getStyle();<NEW_LINE>String styleClass = row.getStyleClass();<NEW_LINE>In...
Integer colspan = row.getColspan();
1,608,417
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {<NEW_LINE>if (requestCode == Constants.PermissionRequestType.LOCATION.ordinal()) {<NEW_LINE>boolean granted = grantResults.length > 0;<NEW_LINE>for (int i = 0; i < grantResults.length; i++) {<NEW_LINE>if...
ok, null).show();
713,897
public void customizeCellRenderer(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) {<NEW_LINE>if (value instanceof MyFileNode) {<NEW_LINE>final VirtualFile file = ((MyFileNode) value).getUserObject();<NEW_LINE>final Module module = ModuleUtil.findModuleForFile(file,...
ModuleUtil.findModuleForFile(file, myProject);
1,033,472
private void generate(ClassOutlineImpl outline, CPropertyInfo prop) {<NEW_LINE>// add isSetXXX and unsetXXX.<NEW_LINE><MASK><NEW_LINE>JCodeModel codeModel = outline.parent().getCodeModel();<NEW_LINE>FieldAccessor acc = core.create(JExpr._this());<NEW_LINE>if (generateIsSetMethod) {<NEW_LINE>// [RESULT] boolean isSetXXX...
MethodWriter writer = outline.createMethodWriter();
974,114
public static void cleanupUninstalledExtensions() {<NEW_LINE>if (SystemUtilities.isInDevelopmentMode()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>// 1. Get all extensions in the installation folder.<NEW_LINE>Set<ExtensionDetails> installedExtensions = ExtensionUtils.getInstalledExtensions(true);<NEW_LINE>//...
"Error removing extension: " + ext.getInstallPath());
936,626
private void runDijkstraWithSource(ConnectionPoint source, Predicate<Path> stopAfter) {<NEW_LINE>Map<ConnectionPoint, Path> shortestKnown = new HashMap<>();<NEW_LINE>BinaryHeap<ConnectionPoint> heap = new BinaryHeap<>(Comparator.comparingDouble(end -> shortestKnown.get(end).loss));<NEW_LINE>Map<ConnectionPoint, HeapEnt...
put(alternative.end, alternative);
1,568,692
private static // Last, the south pole offset is added negatively, to get last offset as 0 (used as a check)<NEW_LINE>boolean readGeoidOffsetsD(BufferedInputStream is) throws Exception {<NEW_LINE>// BufferedReader _may_ increase the performance<NEW_LINE>final byte[] buf = new byte[1000];<NEW_LINE>int bufRead = 0;<NEW_L...
c & 0xff)) - 0xc000);
407,309
public void testCompareToScheduledFutureTask() throws Exception {<NEW_LINE>ScheduledFuture<?> future5 = schedxsvcDefaultLookup.scheduleWithFixedDelay(new CounterTask(), <MASK><NEW_LINE>try {<NEW_LINE>ScheduledFuture<?> future4 = daemon.schedule((Runnable) new CounterTask(), 4, TimeUnit.MINUTES);<NEW_LINE>try {<NEW_LINE...
5, 1, TimeUnit.MINUTES);
1,625,962
final DescribeCacheClustersResult executeDescribeCacheClusters(DescribeCacheClustersRequest describeCacheClustersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeCacheClustersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
132,227
public Classifications predictProba(String text, int topK, String labelPrefix) {<NEW_LINE>int cap = topK != -1 ? topK : 10;<NEW_LINE>ArrayList<String> labels = new ArrayList<>(cap);<NEW_LINE>ArrayList<Float> probs <MASK><NEW_LINE>int size = FastTextLibrary.LIB.predictProba(getHandle(), text, topK, labels, probs);<NEW_L...
= new ArrayList<>(cap);
664,121
private FixedSizeMap<K, V> filter(Predicate2<? super K, ? super V> predicate) {<NEW_LINE>int result = 0;<NEW_LINE>if (predicate.accept(this.key1, this.value1)) {<NEW_LINE>result |= 1;<NEW_LINE>}<NEW_LINE>if (predicate.accept(this.key2, this.value2)) {<NEW_LINE>result |= 2;<NEW_LINE>}<NEW_LINE>if (predicate.accept(this....
this.key3, this.value3);
1,510,146
public Map<Formula, UnaryFormulaInfo> createUnaryFormulaInfoMap() {<NEW_LINE>Map<Formula, FbFormulasInfo.UnaryFormulaInfo> res = new HashMap<<MASK><NEW_LINE>// professions<NEW_LINE>for (String profession : professionPopularityMap.keySet()) {<NEW_LINE>Formula f = new JoinFormula(PROF, new ValueFormula<Value>(new NameVal...
Formula, FbFormulasInfo.UnaryFormulaInfo>();
28,316
public void show(short mode) {<NEW_LINE>this.mode = mode;<NEW_LINE>dialog = new Shell(Display.getDefault(), SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);<NEW_LINE>UIUtil.setDialogDefaultFunctions(dialog);<NEW_LINE>if (mode == ADD_MODE) {<NEW_LINE>dialog.setText("Add Account");<NEW_LINE>} else if (mode == EDIT_MODE) {<NEW_L...
setText(server.getEmail());
983,960
private static <EVIDENCE extends Locatable> LikelihoodMatrix<EVIDENCE, Allele> combinedLikelihoodMatrix(final List<LikelihoodMatrix<EVIDENCE, Allele>> matrices, final AlleleList<Allele> alleleList) {<NEW_LINE>final List<EVIDENCE> reads = matrices.stream().flatMap(m -> m.evidence().stream()).collect(Collectors.toList())...
int readCount = matrix.evidenceCount();
309,122
public List<ValidationEvent> unionShape(UnionShape shape) {<NEW_LINE>return value.asObjectNode().map(object -> {<NEW_LINE>List<<MASK><NEW_LINE>if (object.size() > 1) {<NEW_LINE>events.add(event("union values can contain a value for only a single member"));<NEW_LINE>} else {<NEW_LINE>Map<String, MemberShape> members = s...
ValidationEvent> events = applyPlugins(shape);
1,078,938
private static void exchangeCommands(String[][] commandsToExchange, final JComponent target, final JComponent source) {<NEW_LINE>InputMap targetBindings = target.getInputMap();<NEW_LINE>KeyStroke[] targetBindingKeys = targetBindings.allKeys();<NEW_LINE>ActionMap targetActions = target.getActionMap();<NEW_LINE><MASK><NE...
InputMap sourceBindings = source.getInputMap();
960,933
private void purgeEden() {<NEW_LINE>while (eden.size() > maxEdenSize) {<NEW_LINE>final OCacheEntry candidate = eden.poll();<NEW_LINE>assert candidate != null;<NEW_LINE>if (probation.size() + protection.size() < maxSecondLevelSize) {<NEW_LINE>probation.moveToTheTail(candidate);<NEW_LINE>} else {<NEW_LINE>final OCacheEnt...
int) candidate.getPageIndex());
977,106
public Request<ListOpenIDConnectProviderTagsRequest> marshall(ListOpenIDConnectProviderTagsRequest listOpenIDConnectProviderTagsRequest) {<NEW_LINE>if (listOpenIDConnectProviderTagsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ListOpenI...
(listOpenIDConnectProviderTagsRequest.getMaxItems()));
910,134
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {<NEW_LINE>String url = request.getRequestURI();<NEW_LINE>if (!urlSet.contains(url)) {<NEW_LINE>String token = request.getHeader(JwtUtils.AUTHORIZATION_HEADER_PREFIX);<...
requestDispatcher.forward(request, response);
1,662
public void addInputText(String name, String id) {<NEW_LINE>if (id == null || id.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ArrayList<String> nameList = new ArrayList<String>() {<NEW_LINE><NEW_LINE>{<NEW_LINE>add(name);<NEW_LINE>}<NEW_LINE>};<NEW_LINE>ArrayList<String> idList = new ArrayList<String>() {<NEW_LINE...
String insertStr = TIMMentionEditText.TIM_MENTION_TAG + displayInputString;
6,797
public List<ServiceInstance> lookup(SubscribeInfo subscribeInfo) {<NEW_LINE>String path = getSubscribePath(subscribeInfo);<NEW_LINE>List<ServiceInstance> instances = new ArrayList<ServiceInstance>();<NEW_LINE>try {<NEW_LINE>List<String> childList = client.getChildren().forPath(path);<NEW_LINE>for (String child : childL...
instances.size(), url);
159,359
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String privateCloudName, String authorizationName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and ...
error(new IllegalArgumentException("Parameter authorizationName is required and cannot be null."));
208,513
private int putInDynamicCacheIfAbsent(int bootstrapIndex, final char[] selector, final char[] descriptor, final int value) {<NEW_LINE>int index;<NEW_LINE>HashtableOfObject key1Value = (HashtableOfObject) this.dynamicCache.get(bootstrapIndex);<NEW_LINE>if (key1Value == null) {<NEW_LINE>key1Value = new HashtableOfObject(...
key2Value = key1Value.get(selector);
1,158,053
public static void main(String... args) {<NEW_LINE>final long start = System.currentTimeMillis();<NEW_LINE>try {<NEW_LINE>final Injector injector = Guice.createInjector(Stage.PRODUCTION, new SingularityRunnerBaseModule(SingularityExecutorConfiguration.class, ImmutableSet.<Class<? extends BaseRunnerConfiguration>>of(Sin...
Status.DRIVER_STOPPED ? 0 : 1);
1,421,191
public int trainModel(String modelPath, int epochs) {<NEW_LINE>if (modelPath == null) {<NEW_LINE>logger.severe(Common.addTag("model path cannot be empty"));<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>if (epochs <= 0) {<NEW_LINE>logger.severe(Common.addTag("epochs cannot smaller than 0"));<NEW_LINE>return -1;<NEW_LINE>}<NE...
(Common.addTag("train model failed"));