idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
899,762
private JComponent createLeftActionsToolbar() {<NEW_LINE>final CommonActionsManager actionsManager = CommonActionsManager.getInstance();<NEW_LINE>DefaultActionGroup group = new DefaultActionGroup();<NEW_LINE>group.<MASK><NEW_LINE>group.add(new CloseAction());<NEW_LINE>final TreeExpander treeExpander = new TreeExpander(...
add(new RerunAction(this));
1,231,331
private AccessListAddressSpecifier toAccessListAddressSpecifier(Access_list_ip_rangeContext ctx) {<NEW_LINE>if (ctx.ip != null) {<NEW_LINE>if (ctx.wildcard != null) {<NEW_LINE>// IP and mask<NEW_LINE>Ip <MASK><NEW_LINE>return new WildcardAddressSpecifier(IpWildcard.ipWithWildcardMask(toIp(ctx.ip), wildcard));<NEW_LINE>...
wildcard = toIp(ctx.wildcard);
944,986
static Bitmap decodeStream(InputStream stream, Request request) throws IOException {<NEW_LINE>MarkableInputStream markStream = new MarkableInputStream(stream);<NEW_LINE>stream = markStream;<NEW_LINE>// TODO fix this crap.<NEW_LINE>long mark = markStream.savePosition(65536);<NEW_LINE>final BitmapFactory.Options options ...
0, bytes.length, options);
855,422
private void visitMemberDeclarator(AstNode node) {<NEW_LINE>if (isOverriddenMethod(node)) {<NEW_LINE>// assume that ancestor method is documented<NEW_LINE>// and do not count as public API<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>var container = node.getFirstAncestor(CxxGrammarImpl.templateDeclaration, CxxGrammarImpl.class...
node.getFirstDescendant(CxxGrammarImpl.declaratorId);
1,082,006
private HdfsBlobStore createBlobstore(URI uri, String path, Settings repositorySettings) {<NEW_LINE>Configuration hadoopConfiguration = new Configuration(repositorySettings.getAsBoolean("load_defaults", true));<NEW_LINE>hadoopConfiguration.setClassLoader(HdfsRepository.class.getClassLoader());<NEW_LINE>hadoopConfigurat...
ugi = login(hadoopConfiguration, repositorySettings);
1,378,626
public TransferStatus prepare(final Path file, final Local local, final TransferStatus parent, final ProgressListener progress) throws BackgroundException {<NEW_LINE>final TransferStatus status = super.prepare(file, local, parent, progress);<NEW_LINE>if (status.isExists()) {<NEW_LINE>final String filename = file.getNam...
, file.getType()));
341,606
private Iterator<I_IMP_ProcessorLog> retrieveLogs() {<NEW_LINE>final <MASK><NEW_LINE>final List<Object> params = new ArrayList<Object>();<NEW_LINE>// Window selection<NEW_LINE>final String processWhereClause = getProcessInfo().getWhereClause();<NEW_LINE>if (!Check.isEmpty(processWhereClause, true)) {<NEW_LINE>whereClau...
StringBuilder whereClause = new StringBuilder("1=1");
1,163,240
private static void createTable(final Connection connection) throws SQLException {<NEW_LINE>LOGGER.debug(LOG_CREATING_TABLE, DATABASE_NAME, TABLE_NAME);<NEW_LINE>execute(connection, "CREATE TABLE SUBTRACKS (" + "ID INT NOT NULL , " + "FILEID BIGINT NOT NULL , " + "LANG V...
") , " + "CONSTRAINT PKSUB PRIMARY KEY (FILEID, ID, EXTERNALFILE) , " + "FOREIGN KEY(FILEID) REFERENCES FILES(ID) ON DELETE CASCADE" + ")");
41,546
public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException {<NEW_LINE>String[] clientRegistrationRepositoryBeanNames = BeanFactoryUtils.beanNamesForTypeIncludingAncestors((ListableBeanFactory) this.beanFactory, ClientRegistrationRepository.class, false, false);<NEW_LINE>String[...
beanDefinition = registry.getBeanDefinition(beanName);
49,815
public static ScenarioSetup initTimerChangeProcessDefinition() {<NEW_LINE>return new ScenarioSetup() {<NEW_LINE><NEW_LINE>public void execute(ProcessEngine engine, String scenarioName) {<NEW_LINE>String processDefinitionIdWithoutTenant = engine.getRepositoryService().createDeployment().addClasspathResource("org/camunda...
executionDate(FIXED_DATE_ONE).suspend();
1,315,682
public TextFile importMedia(String userId, long projectId, String urlString, boolean save) throws IOException {<NEW_LINE>InputStream is = null;<NEW_LINE>try {<NEW_LINE>final int BUFSIZE = 4096;<NEW_LINE>URL url = new URL(urlString);<NEW_LINE>byte[] buffer = new byte[BUFSIZE];<NEW_LINE>int read = 0;<NEW_LINE>ByteArrayOu...
write(buffer, 0, read);
451,230
public static void main(String[] args) throws PcapNativeException, NotOpenException {<NEW_LINE>String filter = args.length != 0 ? args[0] : "";<NEW_LINE>System.out.println(COUNT_KEY + ": " + COUNT);<NEW_LINE>System.out.println(READ_TIMEOUT_KEY + ": " + READ_TIMEOUT);<NEW_LINE>System.out.println(SNAPLEN_KEY + ": " + SNA...
"ps_recv: " + ps.getNumPacketsReceived());
1,292,485
public com.amazonaws.services.memorydb.model.InvalidARNException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.memorydb.model.InvalidARNException invalidARNException = new com.amazonaws.services.memorydb.model.InvalidARNException(null);<NEW_LINE>int originalDe...
JsonToken token = context.getCurrentToken();
1,417,049
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi....
check(file, CheckPersistType.all);
1,219,743
private static void assertIterableEquals(Iterable<?> expected, Iterable<?> actual, Deque<Integer> indexes, Object messageOrSupplier) {<NEW_LINE>if (expected == actual) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>assertIterablesNotNull(expected, actual, indexes, messageOrSupplier);<NEW_LINE>Iterator<?> expectedIterator = exp...
Object actualElement = actualIterator.next();
1,042,217
final CreateSamplingRuleResult executeCreateSamplingRule(CreateSamplingRuleRequest createSamplingRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSamplingRuleRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<CreateSamplingR...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,483,785
public static void populateMeasure(Measure measure, boolean checkGroupSplit) {<NEW_LINE>// Retrieve beams in this measure<NEW_LINE>final Set<AbstractBeamInter> <MASK><NEW_LINE>for (AbstractChordInter chord : measure.getHeadChords()) {<NEW_LINE>beams.addAll(chord.getBeams());<NEW_LINE>}<NEW_LINE>// Retrieve beam groups ...
beams = new LinkedHashSet<>();
706,938
public Transferable clipboardCopy() {<NEW_LINE>String result = "";<NEW_LINE>GlassfishModule commonModule = lu.lookup(GlassfishModule.class);<NEW_LINE>if (commonModule != null) {<NEW_LINE>Map<String, String<MASK><NEW_LINE>String host = ip.get(GlassfishModule.HTTPHOST_ATTR);<NEW_LINE>if (null == host) {<NEW_LINE>host = i...
> ip = commonModule.getInstanceProperties();
424,453
private Collection<Fiber> findProblemFibers(long now, long nanos) {<NEW_LINE>final List<Fiber> pfs = new ArrayList<Fiber>();<NEW_LINE>final Map<Thread, Fiber> fibs = scheduler.getRunningFibers();<NEW_LINE>if (fibs == null)<NEW_LINE>return null;<NEW_LINE>fibersInfo.keySet().retainAll(fibs.keySet());<NEW_LINE>for (Iterat...
null ? now : -1));
294,861
public float evaluateMask(int tl_x, int tl_y) {<NEW_LINE>Objects.requireNonNull(o.mask);<NEW_LINE>float imageSumSq = 0;<NEW_LINE>for (int y = 0; y < o.template.height; y++) {<NEW_LINE>int imageIndex = o.image.startIndex + (tl_y + y) * o.image.stride + tl_x;<NEW_LINE>int maskIndex = o.mask.startIndex <MASK><NEW_LINE>for...
+ y * o.mask.stride;
1,312,868
public void profilingConfigurableHookOut(Op op, OpContext oc, long timeStart) {<NEW_LINE>if (OpProfiler.getInstance().getConfig() == null)<NEW_LINE>return;<NEW_LINE>if (OpProfiler.getInstance().getConfig().isStackTrace()) {<NEW_LINE>OpProfiler.getInstance().processStackCall(op, timeStart);<NEW_LINE>}<NEW_LINE>if (OpPro...
OpExecutionerUtil.checkForNaN(op, oc);
1,454,392
public static boolean scrollToVisible(@Nonnull JTree tree, @Nonnull TreePath path, boolean centered) {<NEW_LINE>assert UIAccess.isUIThread();<NEW_LINE>Rectangle bounds = tree.getPathBounds(path);<NEW_LINE>if (bounds == null) {<NEW_LINE>LOG.debug("cannot scroll to: ", path);<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Co...
x = -tree.getX();
1,013,308
private <T> IQuery<T> createQuery_ExplodingORJoinsToUnions_SecondLevelCompositeOR(final QueryBuildContext<T> queryBuildCtx) {<NEW_LINE>final ICompositeQueryFilter<T<MASK><NEW_LINE>if (mainFilterAsComposite == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (mainFilterAsComposite.getFiltersCount() <= 0) {<NEW_LINE>...
> mainFilterAsComposite = queryBuildCtx.getMainFilterAsCompositeOrNull();
1,156,987
public void cmp(AsmMemoryOperand dst, int imm) {<NEW_LINE>int code;<NEW_LINE>if (dst.size == MemoryOperandSize.QWORD) {<NEW_LINE>code = imm >= -0x80 && imm <= 0x7F <MASK><NEW_LINE>} else if (dst.size == MemoryOperandSize.DWORD) {<NEW_LINE>code = imm >= -0x80 && imm <= 0x7F ? Code.CMP_RM32_IMM8 : Code.CMP_RM32_IMM32;<NE...
? Code.CMP_RM64_IMM8 : Code.CMP_RM64_IMM32;
520,501
public void init(final SortedKeyValueIterator<Key, Value> source, final Map<String, String> options, final IteratorEnvironment env) throws IOException {<NEW_LINE>super.<MASK><NEW_LINE>if (options.containsKey(AccumuloStoreConstants.INCOMING_EDGE_ONLY)) {<NEW_LINE>incomingEdges = true;<NEW_LINE>} else if (options.contain...
init(source, options, env);
508,103
public com.didiglobal.booster.aapt2.Resources.Value buildPartial() {<NEW_LINE>com.didiglobal.booster.aapt2.Resources.Value result = new com.didiglobal.booster.aapt2.Resources.Value(this);<NEW_LINE>if (sourceBuilder_ == null) {<NEW_LINE>result.source_ = source_;<NEW_LINE>} else {<NEW_LINE>result.source_ = sourceBuilder_...
.value_ = itemBuilder_.build();
698,447
public Void run(EntityMappingsMetadata metadata) {<NEW_LINE><MASK><NEW_LINE>Object modelElement = ctx.getModelElement();<NEW_LINE>do {<NEW_LINE>if (JPAHelper.isAnyMemberAnnotatedAsIdOrEmbeddedId(modelElement)) {<NEW_LINE>haveId[0] = true;<NEW_LINE>// OK<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>TypeMirror parentType = ...
TypeElement javaClass = ctx.getJavaClass();
917,407
final UpdateApplicationVersionResult executeUpdateApplicationVersion(UpdateApplicationVersionRequest updateApplicationVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateApplicationVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
242,654
public boolean visit(JWhileStatement x, Context ctx) {<NEW_LINE>List<Exit> unlabeledExits = removeUnlabeledExits();<NEW_LINE>pushNode(new CfgStatementNode<JStatement>(parent, x));<NEW_LINE>int pos = nodes.size();<NEW_LINE>accept(x.getTestExpr());<NEW_LINE>CfgWhileNode node = addNode(new CfgWhileNode(parent, x));<NEW_LI...
<Exit> thenExits = removeNormalExits();
139,901
public void marshall(AwsOpenSearchServiceDomainDetails awsOpenSearchServiceDomainDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsOpenSearchServiceDomainDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarsh...
awsOpenSearchServiceDomainDetails.getServiceSoftwareOptions(), SERVICESOFTWAREOPTIONS_BINDING);
1,800,854
final UpdateInputSecurityGroupResult executeUpdateInputSecurityGroup(UpdateInputSecurityGroupRequest updateInputSecurityGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateInputSecurityGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
invoke(request, responseHandler, executionContext);
32,561
protected void constructDom() {<NEW_LINE><MASK><NEW_LINE>addStyleName(CLASSNAME);<NEW_LINE>String treeItemId = DOM.createUniqueId();<NEW_LINE>getElement().setId(treeItemId);<NEW_LINE>Roles.getTreeitemRole().set(getElement());<NEW_LINE>Roles.getTreeitemRole().setAriaSelectedState(getElement(), SelectedValue.FALSE);<NEW_...
String labelId = DOM.createUniqueId();
1,147,514
public AuthServiceResult authenticate(AuthServiceCredentials authCredentials) {<NEW_LINE>final Optional<AuthServiceBackend> activeBackend = authServiceConfig.getActiveBackend();<NEW_LINE>if (activeBackend.isPresent()) {<NEW_LINE>AuthenticationServiceUnavailableException caughtException = null;<NEW_LINE>try {<NEW_LINE>f...
authCredentials, activeBackend.get());
1,125,974
public AviatorObject call(final Map<String, Object> env, final AviatorObject arg1, final AviatorObject arg2, final AviatorObject arg3, final AviatorObject arg4, final AviatorObject arg5, final AviatorObject arg6, final AviatorObject arg7, final AviatorObject arg8, final AviatorObject arg9, final AviatorObject arg10, fi...
arg13, arg14, arg15, arg16);
596,070
public SDVariable defineLayer(SameDiff sameDiff, SDVariable layerInput, Map<String, SDVariable> paramTable, SDVariable mask) {<NEW_LINE>final val W = paramTable.get(WEIGHT_KEY);<NEW_LINE>final val R = paramTable.get(RECURRENT_WEIGHT_KEY);<NEW_LINE>final val b = paramTable.get(BIAS_KEY);<NEW_LINE>long[] shape = layerInp...
(outputSlices[i], 2);
1,416,634
public void deleteNode(String userName, AbstractAppConnNode node) throws ExternalOperationFailedException {<NEW_LINE>NodeInfo nodeInfo = nodeInfoMapper.getWorkflowNodeByType(node.getNodeType());<NEW_LINE>AppConn appConn = AppConnManager.getAppConnManager().getAppConn(nodeInfo.getAppConnName());<NEW_LINE>DevelopmentInte...
getRefCRUDService(appInstance).getRefDeletionOperation();
723,215
final RotateIngestEndpointCredentialsResult executeRotateIngestEndpointCredentials(RotateIngestEndpointCredentialsRequest rotateIngestEndpointCredentialsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(rotateIngestEndpointCredentialsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,670,417
public SchemaInfo parse(InputSource in) {<NEW_LINE>// NOI18N<NEW_LINE>Util.THIS.debug("SchemaParser started.");<NEW_LINE>try {<NEW_LINE>depth = 0;<NEW_LINE>XMLReader parser = XMLUtil.createXMLReader(false, true);<NEW_LINE>parser.setContentHandler(this);<NEW_LINE>parser.setErrorHandler(this);<NEW_LINE><MASK><NEW_LINE>En...
UserCatalog catalog = UserCatalog.getDefault();
1,310,195
public CodegenExpression codegen(EnumForgeCodegenParams premade, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) {<NEW_LINE>CodegenExpressionField indexTypeMember = codegenClassScope.addFieldUnshared(true, ObjectArrayEventType.EPTYPE, cast(ObjectArrayEventType.EPTYPE, EventTypeUtility.resolv...
).addParam(EnumForgeCodegenNames.PARAMSCOLLBEAN);
772,530
public void saveSettings(DBPDataSourceContainer dataSource) {<NEW_LINE>DBPConnectionConfiguration connectionInfo = dataSource.getConnectionConfiguration();<NEW_LINE>connectionInfo.setProviderProperty(PROV_PROP_EDITION, edition.name());<NEW_LINE>if (created) {<NEW_LINE>connectionInfo.setHostName(hostText.getText().trim(...
.getText().trim();
1,232,343
public void marshall(JobTemplateSettings jobTemplateSettings, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (jobTemplateSettings == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(jobTemplateSettings.getAdAv...
jobTemplateSettings.getNielsenConfiguration(), NIELSENCONFIGURATION_BINDING);
1,557,885
private List<BitcoindeAccountLedger> checkForAndQueryAdditionalFees(final List<BitcoindeAccountLedger> ledgers, final Currency currency, final BitcoindeAccountLedgerType customType, final Date start, final Date end, final Integer page) throws IOException {<NEW_LINE>if (customType != null && BitcoindeAccountLedgerType.P...
page + 1).getAccountLedgers();
641,280
final ListRecordingConfigurationsResult executeListRecordingConfigurations(ListRecordingConfigurationsRequest listRecordingConfigurationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRecordingConfigurationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.SERVICE_ID, "ivs");
1,467,041
@Path("/instances/{role}")<NEW_LINE>@ApiOperation(value = "Start a Pinot instance")<NEW_LINE>@ApiResponses(value = { @ApiResponse(code = 200, message = "Pinot instance is started"), @ApiResponse(code = 400, message = "Bad Request"), @ApiResponse(code = 404, message = "Pinot Role Not Found"), @ApiResponse(code = 500, me...
), Response.Status.INTERNAL_SERVER_ERROR);
414,362
private void verifyChangeLog(SchemaChangeLog schemaChangeLog, ChangeSet changeSet, int expectedOrder) {<NEW_LINE>String changeSetId = changeSet.getId();<NEW_LINE>String schemaChangeLogId = schemaChangeLog.getId();<NEW_LINE>if (!changeSetId.equals(schemaChangeLogId)) {<NEW_LINE>throw new IllegalArgumentException("Unexpe...
), changeSet.getValue());
710,980
private void doProcessFile(boolean remap) {<NEW_LINE>try {<NEW_LINE>importer.processFile(remap);<NEW_LINE>tableViewer.getTable().setRedraw(false);<NEW_LINE>for (TableColumn column : tableViewer.getTable().getColumns<MASK><NEW_LINE>TableColumnLayout layout = (TableColumnLayout) tableViewer.getTable().getParent().getLayo...
()) column.dispose();
1,477,915
public void marshall(CreateTriggerRequest createTriggerRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createTriggerRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createTriggerRequest.get...
createTriggerRequest.getType(), TYPE_BINDING);
1,256,001
// Convert items into XML to pass back to the view.<NEW_LINE>private Document toXml(List<BucketItem> itemList) {<NEW_LINE>try {<NEW_LINE>DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();<NEW_LINE>DocumentBuilder builder = factory.newDocumentBuilder();<NEW_LINE><MASK><NEW_LINE>// Start building the ...
Document doc = builder.newDocument();
1,850,852
public void load() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>MapPack out = null;<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("date", date);<NEW_LINE>param.put("objHash", objHash);<NEW_LINE>param.put("objType", objType);<NEW_LINE>param.put("counter", counter);<NEW_L...
long etime = stime + DateUtil.MILLIS_PER_DAY;
880,585
public List<MeasureSlot> buildSlots() {<NEW_LINE>final List<MeasureSlot> slots = new ArrayList<>();<NEW_LINE>final int chordCount = candidateChords.size();<NEW_LINE>int slotCount = 0;<NEW_LINE>int iStart = 0;<NEW_LINE>NextSlot: while (iStart < chordCount) {<NEW_LINE>for (int i = iStart + 1; i < chordCount; i++) {<NEW_L...
rel = getRel(c1, c2);
230,585
final GetSessionResult executeGetSession(GetSessionRequest getSessionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSessionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
invoke(request, responseHandler, executionContext);
233,118
public FieldVariable save(final FieldVariable var, final User user) throws DotDataException, DotSecurityException {<NEW_LINE>ContentTypeAPI contentTypeAPI = APILocator.getContentTypeAPI(user);<NEW_LINE>Field field = fieldFactory.<MASK><NEW_LINE>ContentType type = contentTypeAPI.find(field.contentTypeId());<NEW_LINE>API...
byId(var.fieldId());
1,113,962
final DeleteSizeConstraintSetResult executeDeleteSizeConstraintSet(DeleteSizeConstraintSetRequest deleteSizeConstraintSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSizeConstraintSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
494,981
private final static <T> void populateFromItemsSketch(final int k, final long n, final long bitPattern, final T[] combinedBuffer, final int baseBufferCount, final int numSamples, final T[] itemsArr, final long[] cumWtsArr, final Comparator<? super T> comparator) {<NEW_LINE>long weight = 1;<NEW_LINE>int nxt = 0;<NEW_LIN...
[nxt] = combinedBuffer[i];
1,640,001
private void allocateMemory() {<NEW_LINE>_snappyCompressedStringOutput = ByteBuffer.allocateDirect(_uncompressedString.capacity() * 2);<NEW_LINE>_zstandardCompressedStringOutput = ByteBuffer.allocateDirect(_uncompressedString.capacity() * 2);<NEW_LINE>_snappyStringDecompressed = ByteBuffer.allocateDirect(_uncompressedS...
_uncompressedString.capacity() * 2);
216,040
@RequestMapping(value = "/device/credentials", method = RequestMethod.POST)<NEW_LINE>@ResponseBody<NEW_LINE>public DeviceCredentials updateDeviceCredentials(@ApiParam(value = "A JSON value representing the device credentials.") @RequestBody DeviceCredentials deviceCredentials) throws ThingsboardException {<NEW_LINE>che...
ActionType.CREDENTIALS_UPDATED, e, deviceCredentials);
349,035
public Dimension render(Graphics2D g) {<NEW_LINE>Widget w = inspector.getSelectedWidget();<NEW_LINE>if (w != null) {<NEW_LINE>Object wiw = w;<NEW_LINE>if (inspector.getSelectedItem() != -1) {<NEW_LINE>wiw = w.getWidgetItem(inspector.getSelectedItem());<NEW_LINE>}<NEW_LINE>renderWiw(g, wiw, WidgetInspector.SELECTED_WIDG...
] entries = client.getMenuEntries();
1,647,964
private IRubyObject objectForUClass(boolean partial, List<RubyModule> extendedModules) throws IOException {<NEW_LINE>RubyClass c = getClassFromPath(runtime, <MASK><NEW_LINE>if (c.isSingleton())<NEW_LINE>throw runtime.newTypeError("singleton can't be loaded");<NEW_LINE>int type = r_byte();<NEW_LINE>if (c == runtime.getH...
unique().asJavaString());
61,687
public okhttp3.Call connectPatchNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace}/po...
= new String[] { "BearerToken" };
564,272
public void watchPositionImplAsync(final int watchId, final Map<String, Object> options, final Promise promise) {<NEW_LINE>// Check for permissions<NEW_LINE>if (isMissingForegroundPermissions()) {<NEW_LINE>promise.reject(new LocationUnauthorizedException());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final LocationRequest <M...
locationRequest = LocationHelpers.prepareLocationRequest(options);
1,363,670
final DeleteEventSubscriptionResult executeDeleteEventSubscription(DeleteEventSubscriptionRequest deleteEventSubscriptionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteEventSubscriptionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
DeleteEventSubscriptionResult>(new DeleteEventSubscriptionResultStaxUnmarshaller());
1,416,806
private void incrNavigatorsFromSolrFacets(final Map<String, ReversibleScoreMap<String>> facets) {<NEW_LINE>if (facets != null && !facets.isEmpty()) {<NEW_LINE>fcts = facets.get(CollectionSchema.coordinate_p_0_coordinate.getSolrFieldName());<NEW_LINE>if (fcts != null) {<NEW_LINE>for (String coordinate : fcts) {<NEW_LINE...
> i = fcts.iterator();
1,237,422
final RegisterTypeResult executeRegisterType(RegisterTypeRequest registerTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,466,198
final DeleteWirelessDeviceResult executeDeleteWirelessDevice(DeleteWirelessDeviceRequest deleteWirelessDeviceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteWirelessDeviceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteWirelessDevice");
1,764,396
public void onError(@NonNull Throwable t) {<NEW_LINE>if (done) {<NEW_LINE>RxJavaPlugins.onError(t);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>done = true;<NEW_LINE>if (upstream == null) {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>downstream.onSubscribe(EmptyDisposable.INSTANCE);<NEW_LINE>} catch (Throwable e) {<NEW_LINE>Excep...
Throwable npe = new NullPointerException("Subscription not set!");
1,410,876
private synchronized void maybeSaveUnhandledThrowable(Throwable e, boolean markToStopJobs) {<NEW_LINE>boolean critical = false;<NEW_LINE>ErrorClassification <MASK><NEW_LINE>switch(errorClassification) {<NEW_LINE>case AS_CRITICAL_AS_POSSIBLE:<NEW_LINE>case CRITICAL_AND_LOG:<NEW_LINE>critical = true;<NEW_LINE>logger.atWa...
errorClassification = errorClassifier.classify(e);
1,536,765
protected BBFormularioSondaReturn createFormularioSondaReturn(RespostaInicialFormularioSonda formularioSonda) {<NEW_LINE>return new BBFormularioSondaReturn(new BBBasicDataReturn(Integer.valueOf(formularioSonda.getIdConv()), formularioSonda.getRefTran()), new BigDecimalFormatter().stringInCentsToBigDecimal(formularioSon...
.getDataPagamento(), "ddMMyyyy"));
1,759,012
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>javax.swing.JScrollPane jScrollPane1 = new javax.swing.JScrollPane();<NEW_LINE>artifactsTable = new javax.swing.JTable();<NEW_LINE>setOpaque(false);<NEW_LINE>setPreferredSize(new j...
javax.swing.ListSelectionModel.SINGLE_SELECTION);
14,350
static <InElementT extends @Nullable Object, OutElementT extends @Nullable Object> Spliterator<OutElementT> map(Spliterator<InElementT> fromSpliterator, Function<? super InElementT, ? extends OutElementT> function) {<NEW_LINE>checkNotNull(fromSpliterator);<NEW_LINE>checkNotNull(function);<NEW_LINE>return new Spliterato...
Spliterator.NONNULL | Spliterator.SORTED);
1,169,621
public void moveMCWrapperFromUnSharedToShared(Object value1, Object affinity) {<NEW_LINE>if (tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(this, tc, "moveMCWrapperFromUnSharedToShared");<NEW_LINE>}<NEW_LINE>MCWrapper mcWrapper = (MCWrapper) value1;<NEW_LINE>int sharedbucket = Math.abs(<MASK><NEW_LINE>// Start - Need code he...
affinity.hashCode() % maxSharedBuckets);
1,105,820
static void generateXmlParseBody(GenerationContext context) {<NEW_LINE>TypeScriptWriter writer = context.getWriter();<NEW_LINE>// Include an XML body parser used to deserialize documents from HTTP responses.<NEW_LINE>writer.addImport("SerdeContext", "__SerdeContext", "@aws-sdk/types");<NEW_LINE>writer.<MASK><NEW_LINE>w...
addImport("getValueFromTextNode", "__getValueFromTextNode", "@aws-sdk/smithy-client");
37,525
public void onMapReady(@NonNull final MapboxMap mapboxMap) {<NEW_LINE>mapboxMap.setStyle(Style.MAPBOX_STREETS, new Style.OnStyleLoaded() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onStyleLoaded(@NonNull Style style) {<NEW_LINE>try {<NEW_LINE>GeoJsonSource urbanAreasSource = new GeoJsonSource("urban-areas", new...
)), fillOpacity(0.4f));
40,951
public void addNotify() {<NEW_LINE>super.addNotify();<NEW_LINE>int ptSize <MASK><NEW_LINE>if (useMonospacedFont) {<NEW_LINE>// NOI18N<NEW_LINE>Font font = new Font("Monospaced", Font.PLAIN, ptSize);<NEW_LINE>setFont(font);<NEW_LINE>}<NEW_LINE>fontMetrics = getFontMetrics(getFont());<NEW_LINE>int width = 0;<NEW_LINE>if ...
= getFont().getSize();
1,660,818
public void marshall(App app, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (app == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(app.getAppId(), APPID_BINDING);<NEW_LINE>protocolMarshaller.marshall(app.ge...
app.getProductionBranch(), PRODUCTIONBRANCH_BINDING);
1,506,209
public ParsedLine parse(String line, int cursor, ParseContext context) throws SyntaxError {<NEW_LINE>if (line.isBlank())<NEW_LINE>return simplest(line, cursor, 0, Collections.emptyList());<NEW_LINE>var tokensRaw = new CommonTokenStream(CommonCliRepl.createLexer(line, new BaseErrorListener()));<NEW_LINE>tokensRaw.fill()...
var word = wordOpt.get();
1,049,524
public void update(@Nonnull AnActionEvent e) {<NEW_LINE><MASK><NEW_LINE>Project project = e.getData(CommonDataKeys.PROJECT);<NEW_LINE>ComboBoxButtonImpl button = (ComboBoxButtonImpl) presentation.getClientProperty(CustomComponentAction.COMPONENT_KEY);<NEW_LINE>if (project == null || project.isDefault() || project.isDis...
Presentation presentation = e.getPresentation();
96,689
public emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify buildPartial() {<NEW_LINE>emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify result = new emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE...
.itemList_ = itemListBuilder_.build();
250,909
private void restoreData() {<NEW_LINE>String data = mPrefs.getData(VIDEO_PLAYER_TWEAKS_DATA);<NEW_LINE>String[] split = Helpers.splitObjectLegacy(data);<NEW_LINE>mIsAmlogicFixEnabled = Helpers.parseBoolean(split, 0, false);<NEW_LINE>mIsFrameDropFixEnabled = Helpers.parseBoolean(split, 1, false);<NEW_LINE>mIsSnapToVsync...
parseBoolean(split, 15, false);
590,183
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {<NEW_LINE>addPreferencesFromResource(R.xml.preferences_file_management);<NEW_LINE>offlineFileManagement = findPreference(KEY_OFFLINE);<NEW_LINE>offlineFileManagement.setOnPreferenceClickListener(this);<NEW_LINE>cacheAdvancedOptions = findPrefer...
getRubbishBinAutopurgePeriod(new GetAttrUserListener(context));
522,913
public void valueChanged(TreeSelectionEvent e) {<NEW_LINE>TreePath newLeadSelectionPath = e.getNewLeadSelectionPath();<NEW_LINE>if (newLeadSelectionPath != null) {<NEW_LINE>if (!navigating) {<NEW_LINE>// if we have moved back in history.. reverse before adding<NEW_LINE>while (historyIndex < navigationHistory.size() - 1...
setSelectedIndex(item.getTabIndex());
468,636
public void consume(List<Datum> records) throws Exception {<NEW_LINE>underlyingTransform.consume(records);<NEW_LINE>log.debug("dumping");<NEW_LINE>if (dumpFilename != null) {<NEW_LINE>BatchTrainScore batchTrainScore = underlyingTransform.getBatchTrainScore();<NEW_LINE>ScoreDumper.tryToDumpScoredGrid(batchTrainScore, Al...
(BatchMixtureModel) underlyingTransform.getBatchTrainScore();
776,049
private void addSortCondition(StringBuilder sb, List<Map<String, String>> sortBy) throws AppsmithPluginException {<NEW_LINE>if (isSortConditionEmpty(sortBy)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>sb.append(" ORDER BY");<NEW_LINE>sortBy.stream().filter(sortCondition -> !isBlank(sortCondition.get(SORT_BY_COLUMN_NAME_KEY...
columnName + " " + sortType + ",");
1,369,332
protected ExecutableDdlJob doCreate() {<NEW_LINE>Long initWait = executionContext.getParamManager(<MASK><NEW_LINE>Long interval = executionContext.getParamManager().getLong(ConnectionParams.PREEMPTIVE_MDL_INTERVAL);<NEW_LINE>Map<String, Long> tablesVersion = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);<NEW_LINE>List<S...
).getLong(ConnectionParams.PREEMPTIVE_MDL_INITWAIT);
1,645,651
private static PriceSpecification applyPartialPriceChangeTo(@NonNull final PartialPriceChange changes, @NonNull final PriceSpecification price) {<NEW_LINE>final PriceSpecificationType priceType = coalesce(changes.getPriceType(), price.getType());<NEW_LINE>if (priceType == PriceSpecificationType.NONE) {<NEW_LINE>return ...
(), extractDefaultCurrencyIdSupplier(changes));
726,439
public long learnParametersWithMoments(Object[] observations) {<NEW_LINE>@Var<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>@Var<NEW_LINE>int i;<NEW_LINE>@Var<NEW_LINE>int bin;<NEW_LINE>int[] observationLengths = new int[observations.length];<NEW_LINE>double[] variances = new double[partition.length];<NEW_...
Arrays.fill(observationLengths, 0);
1,321,331
protected void scoreCensus(int disparityRange, final boolean leftToRight) {<NEW_LINE>final int[] scores = leftToRight ? scoreLtoR : scoreRtoL;<NEW_LINE>final long[] dataLeft = censusLeft.data;<NEW_LINE>final long[] dataRight = censusRight.data;<NEW_LINE>for (int d = 0; d < disparityRange; d++) {<NEW_LINE>int total = 0;...
sampleRadiusY) * censusLeft.stride + sampleRadiusX;
1,087,631
public void initialize(String imageType) {<NEW_LINE>if ("png".equalsIgnoreCase(imageType)) {<NEW_LINE>this.caseDiagram = new BufferedImage(canvasWidth, canvasHeight, BufferedImage.TYPE_INT_ARGB);<NEW_LINE>} else {<NEW_LINE>this.caseDiagram = new BufferedImage(canvasWidth, canvasHeight, BufferedImage.TYPE_INT_RGB);<NEW_...
.getResource("org/flowable/icons/user.png", customClassLoader));
213,383
protected void encode(ChannelHandlerContext ctx, WeixinResponse response, List<Object> out) {<NEW_LINE>WeixinMessageTransfer messageTransfer = ctx.channel().attr(ServerToolkits.MESSAGE_TRANSFER_KEY).get();<NEW_LINE>EncryptType encryptType = messageTransfer.getEncryptType();<NEW_LINE>StringBuilder content = new StringBu...
AesToken aesToken = messageTransfer.getAesToken();
1,322,396
private static Context buildTrie(byte[][] needles) {<NEW_LINE>ArrayList<Integer> jumpTableBuilder = new ArrayList<Integer>(ALPHABET_SIZE);<NEW_LINE>for (int i = 0; i < ALPHABET_SIZE; i++) {<NEW_LINE>jumpTableBuilder.add(-1);<NEW_LINE>}<NEW_LINE>ArrayList<Integer> matchForBuilder = new ArrayList<Integer>();<NEW_LINE>mat...
(currentPosition >> BITS_PER_SYMBOL, needleId);
453,447
static ImmutableList<Step> addPostprocessClassesCommands(ProjectFilesystem filesystem, List<String> postprocessClassesCommands, Path outputDirectory, ImmutableSortedSet<Path> declaredClasspathEntries, Optional<String> bootClasspath) {<NEW_LINE>if (postprocessClassesCommands.isEmpty()) {<NEW_LINE>return ImmutableList.of...
ImmutableList.Builder<Step>();
737,734
private void buildApiParams(ApiMessageDescriptor desc) {<NEW_LINE>Class msgClz = desc.getClazz();<NEW_LINE>List<Field> fields = FieldUtils.getAllFields(msgClz);<NEW_LINE>class FP {<NEW_LINE><NEW_LINE>Field field;<NEW_LINE><NEW_LINE>APIParam param;<NEW_LINE>}<NEW_LINE>Map<String, FP> fmap = new HashMap<String, FP>();<NE...
atp.field(), fp);
904,691
public final void clear() {<NEW_LINE>// fill grid with background color<NEW_LINE>final int bgR = (int) (this.backgroundCol >> 16);<NEW_LINE>final int bgG = (int) ((this.backgroundCol >> 8) & 0xff);<NEW_LINE>final int bgB = (int) (this.backgroundCol & 0xff);<NEW_LINE>if (this.frame == null) {<NEW_LINE>final Graphics2D g...
p++] = (byte) bgR;
1,689,448
public void showDownloadControls(boolean needToShow) {<NEW_LINE>// 2 modes:<NEW_LINE>// - only message;<NEW_LINE>// - message + download controls and buttons<NEW_LINE>this.panelGlobal.setVisible(true);<NEW_LINE>// stop button only for loading mode<NEW_LINE>this.buttonStop.setVisible(!needToShow);<NEW_LINE>this.tabsList...
setTabTitle(1, "Custom download", "/buttons/list_panel.png");
1,096,142
static void registerRSocketForwardingFunctionIfNecessary(String definition, FunctionCatalog functionCatalog, ApplicationContext applicationContext) {<NEW_LINE>String[] names = StringUtils.delimitedListToStringArray(definition.replaceAll(",", "|").trim(), "|");<NEW_LINE>for (String name : names) {<NEW_LINE>if (functionC...
) functionCatalog).register(functionRegistration);
101,070
public QueueServiceClient createClientWithDecodingFailedHandler() {<NEW_LINE>// BEGIN: com.azure.storage.queue.QueueServiceClientBuilder#processMessageDecodingErrorHandler<NEW_LINE>String connectionString = "DefaultEndpointsProtocol=https;AccountName={name};" + "AccountKey={key};EndpointSuffix={core.windows.net}";<NEW_...
QueueMessageItem queueMessageItem = queueMessageDecodingFailure.getQueueMessageItem();
1,669,974
private byte[] readUsbFile() throws Exception {<NEW_LINE>ByteBuffer <MASK><NEW_LINE>IntBuffer readBufTransferred = IntBuffer.allocate(1);<NEW_LINE>int result;<NEW_LINE>int countDown = 0;<NEW_LINE>while (!parent.isCancelled() && countDown < 5) {<NEW_LINE>result = LibUsb.bulkTransfer(handlerNS, (byte) 0x81, readBuffer, r...
readBuffer = ByteBuffer.allocateDirect(NXDT_FILE_CHUNK_SIZE);
93,951
private void validateVector(String name, ValueVector vector) {<NEW_LINE>if (vector instanceof BitVector) {<NEW_LINE>validateBitVector(name, (BitVector) vector);<NEW_LINE>} else if (vector instanceof RepeatedBitVector) {<NEW_LINE>validateRepeatedBitVector(name, (RepeatedBitVector) vector);<NEW_LINE>} else if (vector ins...
(name, (MapVector) vector);
309,288
protected void declareDataStructures(PyramidDiscrete<I> image) {<NEW_LINE>numPyramidLayers = image.getNumLayers();<NEW_LINE>previousDerivX = (D[]) Array.newInstance(derivType, image.getNumLayers());<NEW_LINE>previousDerivY = (D[]) Array.newInstance(derivType, image.getNumLayers());<NEW_LINE>currentDerivX = (D[]) Array....
derivType, image.getNumLayers());
1,179,524
default F2<TreeZipper<A>, TreeZipper<B>, TreeZipper<C>> zipTreeZipperM() {<NEW_LINE>F2<A, B, C> outer = this;<NEW_LINE>return (ta, tb) -> {<NEW_LINE>final F2<Stream<Tree<A>>, Stream<Tree<B>>, Stream<Tree<C>>> sf = outer<MASK><NEW_LINE>F2<P3<Stream<Tree<A>>, A, Stream<Tree<A>>>, P3<Stream<Tree<B>>, B, Stream<Tree<B>>>, ...
.treeM().zipStreamM();
1,759,565
private void processBlock(String ip, Block block) {<NEW_LINE>try {<NEW_LINE>Bucket bucket = m_bucketManager.getBucket(block.getDomain(), ip, block.getHour(), true);<NEW_LINE>boolean monitor = (++m_count) % 1000 == 0;<NEW_LINE>if (monitor) {<NEW_LINE>Transaction t = Cat.newTransaction("Block", block.getDomain());<NEW_LI...
Cat.logError(ip, e);