idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,501,674
public SModelComparePluginConfiguration convertToSObject(ModelComparePluginConfiguration input) {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>SModelComparePluginConfiguration result = new SModelComparePluginConfiguration();<NEW_LINE>result.<MASK><NEW_LINE>result.setUuid(input.getUuid());<NEW...
setOid(input.getOid());
628,827
public static IFile readProjectRootFile(IProject project) {<NEW_LINE>final IEclipsePreferences projectPrefs = getProjectPreferences(project);<NEW_LINE>if (projectPrefs != null) {<NEW_LINE>String rootFileName = projectPrefs.get(IPreferenceConstants.P_PROJECT_ROOT_FILE, IPreferenceConstants.DEFAULT_NOT_SET);<NEW_LINE>if ...
.PARENT_ONE_PROJECT_LOC + path.lastSegment();
1,052,119
public static void convolve5(Kernel2D_S32 kernel, GrayS32 src, GrayS32 dest) {<NEW_LINE>final int[] dataSrc = src.data;<NEW_LINE>final int[] dataDst = dest.data;<NEW_LINE>final int width = src.getWidth();<NEW_LINE>final int height = src.getHeight();<NEW_LINE>final int kernelRadius = kernel.getRadius();<NEW_LINE>// CONC...
(dataSrc[indexSrc]) * k5;
1,801,130
public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain) throws IOException, ServletException {<NEW_LINE>// Pre-processing<NEW_LINE>if (!(request instanceof HttpServletRequest)) {<NEW_LINE>throw new ServletException("Expected an HttpServletRequest but didn't get one");...
chain.doFilter(request, response);
1,411,643
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {<NEW_LINE>try {<NEW_LINE>return invokeImpl(proxy, method, args);<NEW_LINE>} catch (TargetError te) {<NEW_LINE>// Unwrap target exception. If the interface declares that<NEW_LINE>// it throws the ex it will be delivered. If not it will ...
> c = t.getClass();
1,807,776
public void processBindingConfiguration(String context, Item item, String bindingConfig) throws BindingConfigParseException {<NEW_LINE>super.processBindingConfiguration(context, item, bindingConfig);<NEW_LINE>String[] parts = parseConfigString(bindingConfig);<NEW_LINE>if (parts.length != 3) {<NEW_LINE>throw new Binding...
[i].split("=");
1,034,889
public void onClick(Entity item, String columnId) {<NEW_LINE>Table.Column column = table.getColumn(columnId);<NEW_LINE>MetaProperty metaProperty;<NEW_LINE>String value;<NEW_LINE>if (DynamicAttributesUtils.isDynamicAttribute(columnId)) {<NEW_LINE>metaProperty = dynamicAttributesTools.getMetaPropertyPath(item.getMetaClas...
, item.getValueEx(columnId));
764,980
public void onReceiveLocation(BDLocation bdLocation) {<NEW_LINE>WritableMap params = Arguments.createMap();<NEW_LINE>params.putDouble("latitude", bdLocation.getLatitude());<NEW_LINE>params.putDouble("longitude", bdLocation.getLongitude());<NEW_LINE>params.putDouble("speed", bdLocation.getSpeed());<NEW_LINE>params.putDo...
"streetNumber", bdLocation.getStreetNumber());
1,256,477
protected JComponent createNorthPanel() {<NEW_LINE>final JPanel panel = new JPanel(new GridBagLayout());<NEW_LINE>final GridBagConstraints gbc = new GridBagConstraints();<NEW_LINE>final String promptKey = isDelete() ? "prompt.delete.elements" : "search.for.usages.and.delete.elements";<NEW_LINE>final String warningMessa...
panel.add(myCbSearchTextOccurrences, gbc);
1,104,361
public Result login() {<NEW_LINE>boolean useOAuth = runtimeConfigFactory.globalRuntimeConf().getBoolean("yb.security.use_oauth");<NEW_LINE>boolean useLdap = runtimeConfigFactory.globalRuntimeConf().getString("yb.security.ldap.use_ldap").equals("true");<NEW_LINE>if (useOAuth) {<NEW_LINE>throw new PlatformServiceExceptio...
), data.getPassword());
1,236,207
public SourceForBinaryQueryImplementation2.Result findSourceRoots2(URL binaryRoot) {<NEW_LINE>SourceForBinaryQueryImplementation2.Result res = this.cache.get(binaryRoot);<NEW_LINE>if (res != null) {<NEW_LINE>return res;<NEW_LINE>}<NEW_LINE>final JavaPlatformManager jpm = JavaPlatformManager.getDefault();<NEW_LINE>final...
getArchiveRoot(new URL(srcZipS));
750,703
public /*<NEW_LINE>* Parg: replaced above commented out checking with one that verifies that the<NEW_LINE>* requests still exist. As piece-picker activity and peer disconnect logic is multi-threaded<NEW_LINE>* and full of holes, this is a stop-gap measure to prevent a piece from being left with<NEW_LINE>* requests that...
final String requester = requested[i];
693,054
public Revision convertFromSObject(SRevision input, Revision result, DatabaseSession session) throws BimserverDatabaseException {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>result.setId(input.getId());<NEW_LINE>result.setDate(input.getDate());<NEW_LINE>result.setComment(input.getComment());...
, OldQuery.getDefault()));
501,413
public SessionData read(ObjectDataInput in) throws IOException {<NEW_LINE>final String id = in.readUTF();<NEW_LINE>final String contextPath = in.readUTF();<NEW_LINE>final String vhost = in.readUTF();<NEW_LINE>final long accessed = in.readLong();<NEW_LINE>final long lastAccessed = in.readLong();<NEW_LINE>final long crea...
long maxInactiveMs = in.readLong();
858,437
private // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>notAgain = new javax.swing.JCheckBox();<NEW_LINE>message = new javax.swing.JLabel();<NEW_LINE>setLayout(new java.awt.Grid...
(BrokenServerAlertPanel.class, "ACSN_BrokenServersAlertPanel"));
1,256,258
public okhttp3.Call exportTenantConfigCall(final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/tenant-config";<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pair>();<NEW_LINE>List<Pair> localVarC...
localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
93,684
public static java.lang.Object decode_(com.jsoniter.JsonIterator iter) throws java.io.IOException {<NEW_LINE>com.jsoniter.CodegenAccess.resetExistingObject(iter);<NEW_LINE>byte nextToken = com.jsoniter.CodegenAccess.readByte(iter);<NEW_LINE>if (nextToken != '[') {<NEW_LINE>if (nextToken == 'n') {<NEW_LINE>com.jsoniter....
jsoniter.CodegenAccess.nextToken(iter);
627,905
/*<NEW_LINE>* "Implementing types" (i.e.: types that might implement interfaces) have the potential to be invalid if incorrectly defined.<NEW_LINE>*<NEW_LINE>* The same interface might not be implemented more than once by a type and its extensions<NEW_LINE>* The implementing type must implement all the transitive inter...
typeRegistry.getTypes(InterfaceTypeDefinition.class);
1,390,270
private static void loadFile() throws IOException {<NEW_LINE>kits.clear();<NEW_LINE>NbtCompound rootTag = NbtIo.read(new File(configPath.toFile(), "kits.dat"));<NEW_LINE>if (rootTag == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int currentVersion = SharedConstants.getGameVersion().getWorldVersion();<NEW_LINE>fi...
add(newTagDynamic.getValue());
167,303
public void processEndElement() throws IOException {<NEW_LINE>super.processEndElement();<NEW_LINE>// Build the value, if necessary<NEW_LINE>if (value instanceof Builder<?>) {<NEW_LINE>Builder<Object> builder = (Builder<Object>) value;<NEW_LINE>updateValue(builder.build());<NEW_LINE>processValue();<NEW_LINE>} else {<NEW...
element.name, element.value);
1,292,484
private void encodeScript(FacesContext context, Sidebar sidebar) throws IOException {<NEW_LINE>WidgetBuilder wb = getWidgetBuilder(context);<NEW_LINE>wb.init("Sidebar", sidebar).attr("visible", sidebar.isVisible(), false).attr("modal", sidebar.isModal(), true).attr("blockScroll", sidebar.isBlockScroll(), false).attr("b...
"function()", sidebar.getOnShow());
240,351
public void marshall(InputDescription inputDescription, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (inputDescription == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(inputDescription.getInputId(), INPUT...
inputDescription.getKinesisStreamsInputDescription(), KINESISSTREAMSINPUTDESCRIPTION_BINDING);
1,463,976
protected void performOperation(final ShardIterator shardIt, final ShardRouting shard, final int shardIndex) {<NEW_LINE>if (shard == null) {<NEW_LINE>// no more active shards... (we should not really get here, just safety)<NEW_LINE>onOperation(null, shardIt, shardIndex, new NoShardAvailableActionException(shardIt.shard...
shardIt, shardIndex, e)));
901,612
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>builder.field(Job.ID.getPreferredName(), jobId);<NEW_LINE>builder.field(MIN_VERSION.getPreferredName(), minVersion);<NEW_LINE>if (timestamp != null) {<NEW_LINE>builder.timeField(TIMEST...
QUANTILES.getPreferredName(), quantiles);
567,620
public void apply(FaceletContext ctx, UIComponent parent) throws IOException {<NEW_LINE>CompositeComponentBeanInfo beanInfo = (CompositeComponentBeanInfo) parent.getAttributes().get(UIComponent.BEANINFO_KEY);<NEW_LINE>if (beanInfo == null) {<NEW_LINE>if (log.isLoggable(Level.SEVERE)) {<NEW_LINE>log.severe("Cannot find ...
facetPropertyDescriptorMap.put(facetName, facetDescriptor);
384,291
void decode(Decoder decoder, Instruction instruction) {<NEW_LINE>instruction.setCode(code);<NEW_LINE>instruction.setOp0Register(decoder.state_reg + decoder.<MASK><NEW_LINE>if ((((decoder.state_zs_flags & StateFlags.Z) | decoder.state_vvvv_invalidCheck | decoder.state_aaa) & decoder.invalidCheckMask) != 0)<NEW_LINE>deco...
state_zs_extraRegisterBase + decoder.state_extraRegisterBaseEVEX + baseReg1);
1,422,435
static PBytes doUnicode(String s, long elementSize, ByteOrder byteOrder, @Shared("factory") @Cached PythonObjectFactory factory) {<NEW_LINE>Charset utf32Charset = byteOrder == ByteOrder.LITTLE_ENDIAN ? UTF32LE : UTF32BE;<NEW_LINE>// elementSize == 2: Store String in 'wchar_t' of size == 2, i.e., use UCS2. This is<NEW_L...
& 0xFFFF0000) >> 16));
190,149
private void addItemsInRange(AssetInfo asset, List<FeeItem> feeItems, FeeItemsAlgorithm algorithm, int txSize, int scale) {<NEW_LINE>for (int i = algorithm.getMinPosition(); i < algorithm.getMaxPosition(); i++) {<NEW_LINE>FeeItem currFeeItem = createFeeItem(asset, txSize, algorithm.computeValue(i), scale);<NEW_LINE>Fee...
|| prevFeeItem.feePerKb < currFeeItem.feePerKb;
1,630,917
private void addActivityMessage(FriendsChatMember member, ActivityType activityType) {<NEW_LINE>final <MASK><NEW_LINE>if (friendsChatManager == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final String activityMessage = activityType == ActivityType.JOINED ? " has joined." : " has left.";<NEW_LINE>final FriendsChatRank ...
FriendsChatManager friendsChatManager = client.getFriendsChatManager();
271,467
public static void encryptAndInsertData(DataSource pool, Aead envAead, String tableName, String team, String email) throws GeneralSecurityException, SQLException {<NEW_LINE>try (Connection conn = pool.getConnection()) {<NEW_LINE>String stmt = String.format("INSERT INTO %s (team, time_cast, voter_email) VALUES (?, ?, ?)...
().getTime()));
1,168,980
final CreateModelResult executeCreateModel(CreateModelRequest createModelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createModelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
907,664
protected void reconstructCoordinators(RecoverableUnit log) throws SystemException {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "reconstructCoordinators", new Object[] { log, this });<NEW_LINE>// Create a WSATRecoveryCoordinator if we are a WSAT subordinate.<NEW_LINE>final RecoverableUnitSection _wsatRCSec...
exit(tc, "reconstructCoordinators", "SystemException");
511,800
public void paint(Graphics2D g, int x, int y, int w, int h) {<NEW_LINE>float scale = (float) h / (float) mMax;<NEW_LINE>g.setColor(Color.BLACK);<NEW_LINE>int by1 = h - (int) (y + minimum * scale);<NEW_LINE>int by2 = h - (int) (y + maximum * scale);<NEW_LINE>g.drawLine(x, by1, x + w, by1);<NEW_LINE>g.drawLine(x, by2, x ...
(255, 88, 119));
3,662
public boolean filterMatches(AbstractItem item) throws MessageStoreException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "filterMatches", item);<NEW_LINE>boolean result = true;<NEW_LINE>// If messages are classified by XD, then check the classification up front.<...
, Boolean.valueOf(result));
959,827
private void checkHashesPartition(List<String> hashes, Map<String, BugInstance> bugsByHash) throws IOException {<NEW_LINE>FindIssuesResponse response = submitHashes(hashes);<NEW_LINE>if (response.hasCurrentServerTime() && (response.getCurrentServerTime() < earliestSeenServerTime))<NEW_LINE>earliestSeenServerTime = resp...
, response.getFoundIssuesCount()));
1,389,718
public Mono<Void> commitTransaction() {<NEW_LINE>return useTransactionStatus(transactionStatus -> {<NEW_LINE>if (IDLE != transactionStatus) {<NEW_LINE>return Flux.from(exchange("COMMIT")).doOnComplete(this::cleanupIsolationLevel).filter(CommandComplete.class::isInstance).cast(CommandComplete.class).<BackendMessage>hand...
" " + "failure is not known (check server logs?)"), "COMMIT"));
742,743
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws AccumuloException, AccumuloSecurityException, IOException {<NEW_LINE>final String currentUser = shellState.getAccumuloClient().whoami();<NEW_LINE>final String user = cl.getOptionValue(userOpt.getOpt(), currentUser);<NEW_LI...
"Enter new password for '" + user + "': ", '*');
1,731,653
private Object invoke(HashMap<String, Object> event, Context context) throws Exception {<NEW_LINE>Method method = findHandlerMethod(this.clazz, this.handlerName);<NEW_LINE>Class<?> requestClass = method.getParameterTypes()[0];<NEW_LINE>Mapper mapper = MapperFactory.getMapper(requestClass);<NEW_LINE>Object <MASK><NEW_LI...
request = mapper.read(event);
1,044,990
public Boolean visit(ScopeBinding command) {<NEW_LINE>Scope scope = command.getScope();<NEW_LINE>Class<? extends Annotation> annotationType = command.getAnnotationType();<NEW_LINE>if (Annotations.isScopeAnnotation(annotationType) == false) {<NEW_LINE>errors.withSource(annotationType).missingScopeAnnotation();<NEW_LINE>...
duplicateScopes(existing, annotationType, scope);
632,221
public boolean createConfigAndDefaultPrinterMatching(@NonNull final I_AD_PrinterHW printerHW) {<NEW_LINE>final Properties ctx = getCtx(printerHW);<NEW_LINE><MASK><NEW_LINE>final List<I_AD_Printer> printers = Services.get(IPrintingDAO.class).retrievePrinters(ctx, printerHW.getAD_Org_ID());<NEW_LINE>if (printers.isEmpty(...
final I_AD_Printer_Config printerConfig = createPrinterConfigIfNoneExists(printerHW);
1,482,186
public String convertAuditRecordToMessage(final PwmApplication pwmApplication, final AuditRecord auditRecord) throws PwmUnrecoverableException {<NEW_LINE>final AppConfig domainConfig = pwmApplication.getConfig();<NEW_LINE>final Settings settings = Settings.fromConfiguration(domainConfig);<NEW_LINE>final String auditRec...
(pwmApplication, settings, auditRecord));
1,122,539
protected void writeBuf(BlockWriteRequestContext context, StreamObserver<WriteResponse> observer, DataBuffer buf, long pos) throws Exception {<NEW_LINE>Preconditions.checkState(context != null);<NEW_LINE>WriteRequest request = context.getRequest();<NEW_LINE>long bytesReserved = context.getBytesReserved();<NEW_LINE>if (...
context.getBlockWriter() != null);
1,762,437
private synchronized void init() {<NEW_LINE>if (!initialized.compareAndSet(false, true)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LOG.debug("GStreamer webcam device initialization");<NEW_LINE>pipe = new Pipeline(getName());<NEW_LINE>source = ElementFactory.make(GStreamerDriver.getSourceBySystem(), "source");<NEW_LINE>if ...
RGBDataSink(getName(), this);
1,393,465
public SuggestionMatch unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SuggestionMatch suggestionMatch = new SuggestionMatch();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
class).unmarshall(context));
1,526,979
public static void vertical5(Kernel1D_S32 kernel, GrayS16 src, GrayI16 dst) {<NEW_LINE>final short[] dataSrc = src.data;<NEW_LINE>final short[] dataDst = dst.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel.data[...
k5 = kernel.data[4];
1,262,135
public static DescribeDBInstancesResponse unmarshall(DescribeDBInstancesResponse describeDBInstancesResponse, UnmarshallerContext context) {<NEW_LINE>describeDBInstancesResponse.setRequestId(context.stringValue("DescribeDBInstancesResponse.RequestId"));<NEW_LINE>describeDBInstancesResponse.setCode(context.stringValue("...
(context.stringValue("DescribeDBInstancesResponse.Message"));
1,326,273
public void doBuild(AdminModel model, Element adminElement, ConfigModelContext modelContext) {<NEW_LINE>if (modelContext.getDeployState().isHosted()) {<NEW_LINE>// admin v4 is used on hosted: Build a default V4 instead<NEW_LINE>new BuilderV4().<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AbstractConfigProducer<?> parent...
doBuild(model, adminElement, modelContext);
1,016,385
public static APIGetResourceConfigReply __example__() {<NEW_LINE>APIGetResourceConfigReply reply = new APIGetResourceConfigReply();<NEW_LINE>reply.value = "5";<NEW_LINE>ResourceConfigInventory hostConfig = new ResourceConfigInventory();<NEW_LINE>hostConfig.setCategory("host");<NEW_LINE>hostConfig.setName("cpu.overProvi...
.message.DocUtils.date));
651,632
private final void addForeignKey0(MutableTable mt, ConstraintImpl impl) {<NEW_LINE>MutableSchema ms = getSchema(impl.$referencesTable().getSchema());<NEW_LINE>if (ms == null)<NEW_LINE>throw notExists(impl.$referencesTable().getSchema());<NEW_LINE>MutableTable mrf = ms.table(impl.$referencesTable());<NEW_LINE>MutableUni...
, impl.$enforced()));
1,457,873
public static void debugHtml(Writer writer, FacesContext faces) throws IOException {<NEW_LINE>_init(faces);<NEW_LINE>Date now = new Date();<NEW_LINE>for (int i = 0; i < debugParts.length; i++) {<NEW_LINE>if ("message".equals(debugParts[i])) {<NEW_LINE>writer.write(faces.getViewRoot().getViewId());<NEW_LINE>} else if ("...
.write(debugParts[i]);
1,032,273
final CreateInstancesFromSnapshotResult executeCreateInstancesFromSnapshot(CreateInstancesFromSnapshotRequest createInstancesFromSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createInstancesFromSnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
387,452
public void testAnnotationJavamailSessionCreated() throws Throwable {<NEW_LINE>if (jm2 != null) {<NEW_LINE>Properties props = jm2.getProperties();<NEW_LINE>System.out.println("JavamailFATServlet.testAnnotationJavamailSessionCreated properties : " + props.toString());<NEW_LINE>// Validate we got the session we expected<...
tpValue = jm2.getProperty("mail.transport.protocol");
806,094
void addFunction(final T function) {<NEW_LINE>final List<ParamType> parameters = function.parameters();<NEW_LINE>if (allFunctions.put(parameters, function) != null) {<NEW_LINE>throw new KsqlFunctionException("Can't add function " + function.name() + " with parameters " + function.parameters() + " as a function with the...
= new Parameter(varargSchema, true);
1,337,301
public void handle(JsonRequest request, JsonResponse response) throws Exception {<NEW_LINE>var exchange = request.getExchange();<NEW_LINE>switch(request.getMethod()) {<NEW_LINE>case GET -><NEW_LINE>{<NEW_LINE>if (checkRequestPath(request)) {<NEW_LINE>var roles = array();<NEW_LINE>request.getAuthenticatedAccount().getRo...
.put("roles", roles));
1,122,571
public static LinkedBuffer writeAscii(final CharSequence str, final WriteSession session, final LinkedBuffer lb) throws IOException {<NEW_LINE>final int len = str.length();<NEW_LINE>if (len == 0)<NEW_LINE>return lb;<NEW_LINE>int offset = lb.offset;<NEW_LINE>final int limit = lb.buffer.length;<NEW_LINE>final byte[] buff...
flush(buffer, start, bufSize);
1,398,123
protected JPopupMenu createPopup(Point p) {<NEW_LINE>final List<Edge> selectedElements = elementsDataTable.getElementsFromSelectedRows();<NEW_LINE>final Edge clickedElement = elementsDataTable.getElementFromRow<MASK><NEW_LINE>JPopupMenu contextMenu = new JPopupMenu();<NEW_LINE>// First add edges manipulators items:<NEW...
(table.rowAtPoint(p));
569,982
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>executeFateOperation_result result = new executeFateOperation_result();<NEW_LINE>if (e instanceof org.apache.accumulo.core.clientImpl.thrift.ThriftSe...
.thrift.protocol.TMessageType.EXCEPTION;
1,056,115
private void writeWrappedOptions(boolean includeDefaultBindings, Element root) {<NEW_LINE>for (String optionName : valueMap.keySet()) {<NEW_LINE>Option option = valueMap.get(optionName);<NEW_LINE>if (includeDefaultBindings || !option.isDefault()) {<NEW_LINE>Object value = option.getCurrentValue();<NEW_LINE>if (isSuppor...
elem.setAttribute(NAME_ATTRIBUTE, optionName);
436,239
public Builder mergeFrom(io.kubernetes.client.proto.V1.ResourceQuotaList other) {<NEW_LINE>if (other == io.kubernetes.client.proto.V1.ResourceQuotaList.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasMetadata()) {<NEW_LINE>mergeMetadata(other.getMetadata());<NEW_LINE>}<NEW_LINE>if (itemsBuilder_ == nu...
itemsBuilder_.addAllMessages(other.items_);
800,085
// private Ehcache cache = ApplicationCache.instance().getCache(File.class);<NEW_LINE>ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag, String applicationFlag) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo...
file().pick(id);
744,544
public void marshall(JobTemplate jobTemplate, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (jobTemplate == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(jobTemplate.getAccelerationSettings(), ACCELERATION...
jobTemplate.getPriority(), PRIORITY_BINDING);
1,828,796
private List<Frame> splitMessageToFrames(Message msg) {<NEW_LINE>byte code = getCode(msg.getCommand());<NEW_LINE>List<Frame> ret = new ArrayList<>();<NEW_LINE>byte[] bytes = msg.getEncoded();<NEW_LINE>int curPos = 0;<NEW_LINE>while (curPos < bytes.length) {<NEW_LINE>int newPos = min(curPos + maxFramePayloadSize, bytes....
copyOfRange(bytes, curPos, newPos);
537,078
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see android.app.Service#onStartCommand(android.content.Intent, int, int)<NEW_LINE>*/<NEW_LINE>public int onStartCommand(Intent intent, int flags, int startId) {<NEW_LINE>// Overridden method called when the service is started. Data<NEW_LINE>// associated with the transfer is stor...
fileDestination = transferData.getBoolean(FileDestination);
1,742,512
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>((WordPress) getApplication()).component().inject(this);<NEW_LINE>AppLog.i(AppLog.T.NOTIFS, "Creating NotificationsDetailActivity");<NEW_LINE>setContentView(R.layout.notifications_detail_activity);<NEW_LINE>mToolbar ...
setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
1,171,159
// personalizePageContainers<NEW_LINE>@DELETE<NEW_LINE>@Path("/pagepersonas/page/{pageId}/personalization/{personalization}")<NEW_LINE>@JSONP<NEW_LINE>@NoCache<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON, "application/javascript" })<NEW_LINE>public Response personalizePageContainers(@Context final HttpServletReques...
pageContentlet = contentletAPI.findContentletByIdentifierAnyLanguage(pageId);
509,549
public void saveParam(ConnectionParam options) {<NEW_LINE>options.setUseSocksProxy(useSocksCheckBox.isSelected());<NEW_LINE>SocksProxy oldSocksProxy = options.getSocksProxy();<NEW_LINE>if (!oldSocksProxy.getHost().equals(hostTextField.getText()) || oldSocksProxy.getPort() != portNumberSpinner.getValue() || oldSocksProx...
] password = passwordField.getPassword();
1,070,341
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>jLabelDesc = new javax.swing.JLabel();<NEW_LINE>jPanelBeanTree = new javax.swing.JPanel();<NEW_LINE>jLabelError = new javax...
(255, 0, 0));
810,529
public ValueRange range(TemporalField field) {<NEW_LINE>if (field instanceof ChronoField) {<NEW_LINE>if (isSupported(field)) {<NEW_LINE>ChronoField f = (ChronoField) field;<NEW_LINE>switch(f) {<NEW_LINE>case DAY_OF_MONTH:<NEW_LINE>case DAY_OF_YEAR:<NEW_LINE>case ALIGNED_WEEK_OF_MONTH:<NEW_LINE>return isoDate.range(fiel...
ValueRange.of(1, max);
1,084,366
private Collection<InetSocketAddress> buildWhiteListCollection(String whiteList) {<NEW_LINE>String[] list = whiteList.split(Constants.COMMA);<NEW_LINE>Collection<InetSocketAddress> whiteListCollection = new ArrayList<InetSocketAddress>();<NEW_LINE>PersistenceUnitMetadata persistenceUnitMetadata = kunderaMetadata.getApp...
.get(PersistenceProperties.KUNDERA_PORT));
1,738,390
public void validateCertificateChain(List<X509Certificate> certificateChain) throws UaException {<NEW_LINE>PKIXCertPathBuilderResult certPathResult;<NEW_LINE>try {<NEW_LINE>certPathResult = buildTrustedCertPath(certificateChain, trustListManager.getTrustedCertificates(), trustListManager.getIssuerCertificates());<NEW_L...
addAll(trustListManager.getTrustedCrls());
620,376
public void startUp(FloodlightModuleContext context) {<NEW_LINE>// paag: register the IControllerCompletionListener<NEW_LINE>floodlightProviderService.addCompletionListener(this);<NEW_LINE>floodlightProviderService.addOFMessageListener(OFType.PACKET_IN, this);<NEW_LINE>floodlightProviderService.addOFMessageListener(OFT...
FLOWMOD_DEFAULT_IDLE_TIMEOUT = Short.parseShort(idleTimeout);
316,807
protected List<IFacet<I_C_Invoice_Candidate>> collectFacets(final IQueryBuilder<I_C_Invoice_Candidate> queryBuilder) {<NEW_LINE>// FRESH-560: Add default filter<NEW_LINE>final IQueryBuilder<I_C_Invoice_Candidate> queryBuilderWithDefaultFilters = Services.get(IInvoiceCandDAO.class).applyDefaultFilter(queryBuilder);<NEW_...
I_C_BPartner.COLUMNNAME_Name, I_C_BPartner.COLUMNNAME_Value);
1,529,794
final CreateConnectPeerResult executeCreateConnectPeer(CreateConnectPeerRequest createConnectPeerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createConnectPeerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,657,306
public static void exportDiagramError(OutputStream os, Throwable exception, FileFormatOption fileFormat, long seed, String metadata, String flash, List<String> strings) throws IOException {<NEW_LINE>if (fileFormat.getFileFormat() == FileFormat.ATXT || fileFormat.getFileFormat() == FileFormat.UTXT) {<NEW_LINE>exportDiag...
(UTranslate.dy(height));
530,264
private void handleSignInResponse(int resultCode, @Nullable IdpResponse response) {<NEW_LINE>// Successfully signed in<NEW_LINE>if (resultCode == RESULT_OK) {<NEW_LINE>startSignedInActivity(response);<NEW_LINE>finish();<NEW_LINE>} else {<NEW_LINE>// Sign in failed<NEW_LINE>if (response == null) {<NEW_LINE>// User press...
showSnackbar(R.string.account_disabled);
551,156
public CreateEmailIdentityResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateEmailIdentityResult createEmailIdentityResult = new CreateEmailIdentityResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>J...
String currentParentElement = context.getCurrentParentElement();
172,040
public void marshall(ConnectorDetail connectorDetail, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (connectorDetail == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(connectorDetail.getConnectorDescription...
connectorDetail.getConnectorLabel(), CONNECTORLABEL_BINDING);
1,489,898
protected <T extends Ruleset> T mapResultTuple(Class<T> rulesetType, RulesetQuery query, ResultSet rs) throws SQLException {<NEW_LINE>T ruleset;<NEW_LINE>if (rulesetType == GlobalRuleset.class) {<NEW_LINE>ruleset = (T) new GlobalRuleset();<NEW_LINE>} else if (rulesetType == TenantRuleset.class) {<NEW_LINE>TenantRuleset...
throw new UnsupportedOperationException("Ruleset type not supported: " + rulesetType);
1,649,963
public ThingTypeMetadata unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ThingTypeMetadata thingTypeMetadata = new ThingTypeMetadata();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
class).unmarshall(context));
166,955
public KeystoreWrapper build() throws EsHadoopSecurityException, IOException {<NEW_LINE>if (StringUtils.hasText(path)) {<NEW_LINE>try {<NEW_LINE>keystoreFile = IOUtils.open(path);<NEW_LINE>if (keystoreFile == null) {<NEW_LINE>throw new EsHadoopIllegalArgumentException(String<MASK><NEW_LINE>}<NEW_LINE>} catch (Exception...
.format("Could not locate [%s] on classpath", path));
931,082
public I_C_Order createDraft() {<NEW_LINE>if (costCollectorsToAggregate.isEmpty()) {<NEW_LINE>throw new AdempiereException("No cost collectors to aggregate");<NEW_LINE>}<NEW_LINE>//<NEW_LINE>// Make sure they are ordered by Task ID, so the quotation lines will be in same ordering as the repair tasks<NEW_LINE>costCollec...
I_C_Order quotation = orderFactory.createDraft();
775,098
public static Map<String, DcZkInfo> parseDcJsonAndPopulateDcInfo(String dcInfoJsonString) throws JSONException {<NEW_LINE>Map<String, DcZkInfo> dataCenterToZkAddress = new HashMap<>();<NEW_LINE>JSONObject root = new JSONObject(dcInfoJsonString);<NEW_LINE>JSONArray all = root.getJSONArray(ZKINFO_STR);<NEW_LINE>for (int ...
class, REPLICA_TYPE_STR, ReplicaType.DISK_BACKED);
852,811
public boolean isDeleted(final OPhysicalPosition position) throws IOException {<NEW_LINE>atomicOperationsManager.acquireReadLock(this);<NEW_LINE>try {<NEW_LINE>acquireSharedLock();<NEW_LINE>try {<NEW_LINE>final OAtomicOperation atomicOperation = atomicOperationsManager.getCurrentOperation();<NEW_LINE>final long cluster...
OClusterPage localPage = new OClusterPage(cacheEntry);
1,647,222
public boolean canCreate(ODatabaseSession session, ORecord record) {<NEW_LINE>if (session.getUser() == null) {<NEW_LINE>// executeNoAuth<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (!session.getConfiguration().getValueAsBoolean(OGlobalConfiguration.SECURITY_ADVANCED_POLICY)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE...
"`", OSecurityPolicy.Scope.CREATE);
246,557
public BuiltInScalarFunctionImplementation specialize(BoundVariables boundVariables, int arity, FunctionAndTypeManager functionAndTypeManager) {<NEW_LINE>checkArgument(arity == 1, "Expected arity to be 1");<NEW_LINE>Type fromType = boundVariables.getTypeVariable("F");<NEW_LINE>Type toType = boundVariables.getTypeVariab...
function = functionAndTypeManager.getJavaScalarFunctionImplementation(functionHandle);
1,474,083
public static void usage() {<NEW_LINE>System.err.println("JDiff version: " + JDiff.version);<NEW_LINE>System.err.println("");<NEW_LINE>System.err.println("Valid JDiff arguments:");<NEW_LINE>System.err.println("");<NEW_LINE>System.err.println(" -apiname <Name of a version>");<NEW_LINE>System.err.println(" -oldapi <Nam...
System.err.println(" -apidir <directory> Destination directory for the XML file generated with the '-apiname' argument.");
864,588
public void load() {<NEW_LINE>synchronized (registryLock) {<NEW_LINE>// Find subsystems asking for initialization.<NEW_LINE>ServiceLoader<T> sl;<NEW_LINE>try {<NEW_LINE>// Use this->classloader form : better for OSGi<NEW_LINE>sl = ServiceLoader.load(moduleClass, this.getClass().getClassLoader());<NEW_LINE>} catch (Serv...
moduleClass.getName(), ex);
1,363,050
public static void registerType(ModelBuilder modelBuilder) {<NEW_LINE>ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(MessageEventDefinition.class, BPMN_ELEMENT_MESSAGE_EVENT_DEFINITION).namespaceUri(BPMN20_NS).extendsType(EventDefinition.class).instanceProvider(new ModelElementTypeBuilder.ModelTypeInstan...
namespace(CAMUNDA_NS).build();
373,861
public void handleRequest(HttpServerExchange exchange) throws Exception {<NEW_LINE>var request = MongoRequest.of(exchange);<NEW_LINE>var response = MongoResponse.of(exchange);<NEW_LINE>if (request.isInError()) {<NEW_LINE>next(exchange);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>var _content = request.getContent();<NEW_LINE>...
getCause().getMessage());
1,795,518
private void onNextInternal(R value) throws IOException {<NEW_LINE>LOG.debug("Received request {}", value);<NEW_LINE>if (mStream == null) {<NEW_LINE>throw new IllegalStateException("No request stream assigned");<NEW_LINE>}<NEW_LINE>if (!mSnapshotFile.exists()) {<NEW_LINE>throw new FileNotFoundException(String.format("S...
)).build()));
461,835
public void lockToPortraitUpsideDown() {<NEW_LINE>final Activity activity = getCurrentActivity();<NEW_LINE>if (activity == null)<NEW_LINE>return;<NEW_LINE>activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT);<NEW_LINE>isLocked = true;<NEW_LINE>// force send an UI orientation event<NEW_LINE...
params.putString("orientation", lastOrientationValue);
73,441
public void entity2Storage(final ZipkinSpanRecord storageData, final Convert2Storage converter) {<NEW_LINE>converter.accept(TRACE_ID, storageData.getTraceId());<NEW_LINE>converter.accept(<MASK><NEW_LINE>converter.accept(SERVICE_ID, storageData.getServiceId());<NEW_LINE>converter.accept(SERVICE_INSTANCE_ID, storageData....
SPAN_ID, storageData.getSpanId());
1,642,340
final ListRegistriesResult executeListRegistries(ListRegistriesRequest listRegistriesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRegistriesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
HandlerContextKey.SIGNING_REGION, getSigningRegion());
16,742
public boolean load(Properties props) {<NEW_LINE>assert !SwingUtilities.isEventDispatchThread();<NEW_LINE>final Properties <MASK><NEW_LINE>try {<NEW_LINE>SwingUtilities.invokeAndWait(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>hostTextField.setText(attachProps.getString(PROP_HOST...
attachProps = props.getProperties(V8_ATTACH_PROPERTIES);
971,014
public final void primaryExpression() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST primaryExpression_AST = null;<NEW_LINE>switch(LA(1)) {<NEW_LINE>case LPAREN_WITH_NO_LEADING_SPACE:<NEW_LINE>case LPAREN:<NEW_LINE>case GLOBAL_VAR...
astFactory.addASTChild(currentAST, returnAST);
302,472
private void initLayout() {<NEW_LINE>this.getStyleClass().add("searchBox");<NEW_LINE>searchField = new JFXTextField();<NEW_LINE>searchField.setOnKeyReleased(e -> {<NEW_LINE>if (e.getCode() == KeyCode.ESCAPE) {<NEW_LINE>if (closeHandler != null) {<NEW_LINE>closeHandler.run();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>});<NEW_LINE>...
new FontAwesomeIconView(FontAwesomeIcon.ANGLE_UP));
242,407
protected List<SlimAssertion> assertionsFromScenario(int row) throws TestExecutionException {<NEW_LINE>int lastCol = table.getColumnCountInRow(row) - 1;<NEW_LINE>String scenarioName = getScenarioNameFromAlternatingCells(lastCol, row);<NEW_LINE>ScenarioTable scenario = getTestContext().getScenario(scenarioName);<NEW_LIN...
assertions = new ArrayList<>();
80,843
private void parseKeyboard(final XmlPullParser parser, final boolean skip) throws XmlPullParserException, IOException {<NEW_LINE>while (parser.getEventType() != XmlPullParser.END_DOCUMENT) {<NEW_LINE>final int event = parser.next();<NEW_LINE>if (event == XmlPullParser.START_TAG) {<NEW_LINE>final String tag = parser.get...
IllegalStartTag(parser, tag, TAG_KEYBOARD);
25,608
public WebContentDto updateWebContent(final WebContentForm webContentForm) {<NEW_LINE>log.debug("updateWebContent() - webContentForm: {}", webContentForm);<NEW_LINE>final WebContent webContent = webContentService.find(webContentForm.getId());<NEW_LINE>switch(webContentForm.getType()) {<NEW_LINE>case SIMPLE:<NEW_LINE>fi...
changeContent(advancedWebContentForm.getContent());
895,637
private static String buildAutomodFragments(JSONArray fragments) {<NEW_LINE>StringBuilder b = new StringBuilder();<NEW_LINE>for (Object o : fragments) {<NEW_LINE>JSONObject fragment = (JSONObject) o;<NEW_LINE>String text = JSONUtil.getString(fragment, "text");<NEW_LINE>if (fragment.containsKey("automod")) {<NEW_LINE>if...
"automod")).get("topics");