idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
62,646
private static void loadLibrary(final ClassLoader loader, final String name, final boolean absolute) {<NEW_LINE>Throwable suppressed = null;<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>// Make sure the helper belongs to the target ClassLoader.<NEW_LINE>final Class<?> newHelper = tryToLoadClass(loader, NativeLibraryUtil.clas...
NativeLibraryUtil.loadLibrary(name, absolute);
687,625
// Calculate the list of sizes for each output buffer (metadata plus size of compressed chunks)<NEW_LINE>private long[] calcOutputBufferSizes(int[] chunksPerInput, long[] outputChunkSizes) {<NEW_LINE>long[] sizes = new long[chunksPerInput.length];<NEW_LINE>int chunkIdx = 0;<NEW_LINE>for (int i = 0; i < sizes.length; i+...
final int chunksInBuffer = chunksPerInput[i];
929,085
private void processType(TypeElement autoBuilderType, TypeElement ofClass, String callMethod) {<NEW_LINE>ImmutableSet<ExecutableElement> methods = abstractMethodsIn(getLocalAndInheritedMethods(autoBuilderType, typeUtils(), elementUtils()));<NEW_LINE>Executable executable = findExecutable(ofClass, callMethod, autoBuilde...
getOptions().containsKey(OMIT_IDENTIFIERS_OPTION);
808,942
public void marshall(OrganizationConfigRule organizationConfigRule, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (organizationConfigRule == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(organizationConfig...
organizationConfigRule.getOrganizationManagedRuleMetadata(), ORGANIZATIONMANAGEDRULEMETADATA_BINDING);
422,029
public boolean visit(SQLDataType x) {<NEW_LINE>printDataType(x);<NEW_LINE>if (x instanceof SQLDataTypeImpl) {<NEW_LINE>SQLDataTypeImpl dataTypeImpl = (SQLDataTypeImpl) x;<NEW_LINE>if (dataTypeImpl.isUnsigned()) {<NEW_LINE>print0(ucase ? " UNSIGNED" : " unsigned");<NEW_LINE>}<NEW_LINE>if (dataTypeImpl.isZerofill()) {<NE...
print0(ucase ? " CHARACTER SET " : " character set ");
1,095,871
protected XMLResource createEmfXmlResource(MediaType mediaType) {<NEW_LINE>XMLResource result = null;<NEW_LINE>if (MediaType.APPLICATION_ECORE.isCompatible(getMediaType())) {<NEW_LINE>result = new EMOFResourceImpl();<NEW_LINE>} else if (MediaType.APPLICATION_XMI.isCompatible(getMediaType())) {<NEW_LINE>result = new XMI...
XMLResource.OPTION_LINE_WIDTH, getLineWidth());
256,841
protected void doStart() {<NEW_LINE>ReactorScheduledExecutorService executorService = new ReactorScheduledExecutorService(threadPool, reactorExecutorName) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected Runnable decorateRunnable(Runnable command) {<NEW_LINE>return () -> SocketAccess.doPrivilegedVoidException(command:...
SocketAccess.doPrivilegedException(callable::call);
1,796,511
public static DescribeVmBackupPlansResponse unmarshall(DescribeVmBackupPlansResponse describeVmBackupPlansResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeVmBackupPlansResponse.setRequestId(_ctx.stringValue("DescribeVmBackupPlansResponse.RequestId"));<NEW_LINE>describeVmBackupPlansResponse.setSuccess(_ctx.boolean...
(_ctx.integerValue("DescribeVmBackupPlansResponse.TotalCount"));
280,216
public void afterPropertiesSet() throws Exception {<NEW_LINE>super.afterPropertiesSet();<NEW_LINE>for (String name : this.repos.keySet()) {<NEW_LINE>PatternMatchingJGitEnvironmentRepository repo = this.repos.get(name);<NEW_LINE>repo.setEnvironment(getEnvironment());<NEW_LINE>if (!StringUtils.hasText(repo.getName())) {<...
IllegalStateException("Cannot write parent of basedir (please configure a writable location): " + getBasedir());
1,707,543
private int trackStreamPositions(final int existingWorkCount, final long nowNs) {<NEW_LINE>int workCount = existingWorkCount;<NEW_LINE>final ArrayList<MASK><NEW_LINE>for (int i = 0, size = publicationImages.size(); i < size; i++) {<NEW_LINE>workCount += publicationImages.get(i).trackRebuild(nowNs);<NEW_LINE>}<NEW_LINE>...
<PublicationImage> publicationImages = this.publicationImages;
1,090,458
protected int checkDirectoryWriteable(String location) {<NEW_LINE>final String methodName = "checkDirectoryWriteable()";<NEW_LINE>int rc = CacheOnDisk.LOCATION_OK;<NEW_LINE>if (location.equals("")) {<NEW_LINE>rc = CacheOnDisk.LOCATION_NOT_DEFINED;<NEW_LINE>} else if (location.startsWith("${") && location.indexOf("}") >...
+ ExceptionUtility.getStackTrace(t));
874,648
private static VoiceNotePlaybackState extractStateFromMetadata(@NonNull MediaControllerCompat mediaController, @NonNull MediaMetadataCompat mediaMetadataCompat, @Nullable VoiceNotePlaybackState previousState) {<NEW_LINE>Uri mediaUri = Objects.requireNonNull(mediaMetadataCompat.getDescription().getMediaUri());<NEW_LINE>...
mediaMetadataCompat.getLong(MediaMetadataCompat.METADATA_KEY_DURATION);
1,102,189
private JmxInfoDTO parse2Jmx(ApiTestCaseWithBLOBs apiTestCase, String envId) {<NEW_LINE>String request = apiTestCase.getRequest();<NEW_LINE>MsHTTPSamplerProxy msHTTPSamplerProxy = JSONObject.parseObject(request, MsHTTPSamplerProxy.class);<NEW_LINE>msHTTPSamplerProxy.setName(apiTestCase.getId());<NEW_LINE>msHTTPSamplerP...
setName(apiTestCase.getName());
1,475,639
private static void buildFileForCompliance(String file, int length, String[] tokens) {<NEW_LINE>byte[] result = new byte[length * 8];<NEW_LINE>for (int i = 0; i < tokens.length; i = i + 3) {<NEW_LINE>if ("2".equals(tokens[i])) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>int index = Integer.parseInt(tokens[i + 1]);<NEW_LINE>Stri...
) (compliance >>> 48);
52,920
public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {<NEW_LINE>if (holder instanceof ViewHolderHeaderChat) {<NEW_LINE>ViewHolderHeaderChat holderHeaderChat = (ViewHolderHeaderChat) holder;<NEW_LINE>boolean isFullHistoryLoaded = megaChatApi.isFullHistoryLoaded(chatRoom.getChatId());<NEW_LINE>holde...
View.VISIBLE : View.GONE);
1,846,755
public Paths traversePaths(Paths paths) {<NEW_LINE>if (isTraversed(paths)) {<NEW_LINE>return paths;<NEW_LINE>}<NEW_LINE>if (previsit) {<NEW_LINE>paths = visitor.visitPaths(this, paths);<NEW_LINE>if (paths == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>ancestors.push(paths);<NEW_LINE>final Map<String, P...
> extensions = paths.getExtensions();
1,342,581
public PhraseSuggestionContext.DirectCandidateGenerator build(MapperService mapperService) throws IOException {<NEW_LINE>PhraseSuggestionContext.DirectCandidateGenerator generator = new PhraseSuggestionContext.DirectCandidateGenerator();<NEW_LINE>generator.setField(this.field);<NEW_LINE>transferIfNotNull(this.size, gen...
this.minDocFreq, generator::minDocFreq);
1,412,453
public void formatTo(DataTable table, Appendable appendable) throws IOException {<NEW_LINE>requireNonNull(table, "table may not be null");<NEW_LINE>requireNonNull(appendable, "appendable may not be null");<NEW_LINE>if (table.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// datatables are always square and non-spars...
colIndex] - cellText.length();
1,229,845
public static void horizontal(Kernel1D_S32 kernel, GrayS16 src, GrayI16 dst, int divisor) {<NEW_LINE>final short[] dataSrc = src.data;<NEW_LINE>final short[] dataDst = dst.data;<NEW_LINE>final int[] dataKer = kernel.data;<NEW_LINE>final int offset = kernel.getOffset();<NEW_LINE>final int kernelWidth = kernel.getWidth()...
(total + halfDivisor) / divisor);
227,366
public void generate(final Module module, final Element element) {<NEW_LINE>final GoogleBaseImpl mod = (GoogleBaseImpl) module;<NEW_LINE>final HashMap<Object, Object> props2tags = new HashMap<Object, Object>(GoogleBaseParser.PROPS2TAGS);<NEW_LINE>final List<PropertyDescriptor> pds = GoogleBaseParser.pds;<NEW_LINE>for (...
, (Object[]) null);
74,839
public OView createView(ODatabaseDocumentInternal database, OViewConfig cfg) {<NEW_LINE>final Character wrongCharacter = OSchemaShared.checkClassNameIfValid(cfg.getName());<NEW_LINE>if (wrongCharacter != null)<NEW_LINE>throw new OSchemaException("Invalid view name found. Character '" + wrongCharacter + "' cannot be use...
.toLowerCase(Locale.ENGLISH));
1,777,021
public List<ReportReloadEntity> loadReport(long time) {<NEW_LINE>List<ReportReloadEntity> results = new ArrayList<ReportReloadEntity>();<NEW_LINE>Map<String, List<BusinessReport>> mergedReports = new HashMap<String, List<BusinessReport>>();<NEW_LINE>for (int i = 0; i < getAnalyzerCount(); i++) {<NEW_LINE>Map<String, Bu...
report.setName(getId());
1,467,277
protected void onResume() {<NEW_LINE>inForeground = true;<NEW_LINE><MASK><NEW_LINE>super.onResume();<NEW_LINE>if (isFinishing()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Log.d(TAG, "Activity " + this + " onResume", Log.DEBUG_MODE);<NEW_LINE>if (this.window != null) {<NEW_LINE>this.window.onWindowFocusChange(true);<NEW_LI...
dispatchCallback(TiC.PROPERTY_ON_RESUME, null);
1,510,264
private void updateUiKnownBalance(Balance balance, AssetInfo coinType) {<NEW_LINE>CharSequence valueString = ValueExtensionsKt.toStringWithUnit(balance.getSpendable(), _mbwManager.getDenomination(coinType));<NEW_LINE>((TextView) _root.findViewById(R.id.tvBalance)).setText(valueString);<NEW_LINE>// Show alternative valu...
findViewById(R.id.tvSending);
1,621,766
public ResponseData<CreateWeIdDataResult> createWeId() {<NEW_LINE>CreateWeIdDataResult result = new CreateWeIdDataResult();<NEW_LINE><MASK><NEW_LINE>if (Objects.isNull(keyPair)) {<NEW_LINE>logger.error("Create weId failed.");<NEW_LINE>return new ResponseData<>(null, ErrorCode.WEID_KEYPAIR_CREATE_FAILED);<NEW_LINE>}<NEW...
ECKeyPair keyPair = GenCredential.createKeyPair();
578,502
public Composite createControl(Composite parent, DashboardResources resources) {<NEW_LINE>Composite container = new Composite(parent, SWT.NONE);<NEW_LINE>container.<MASK><NEW_LINE>GridLayoutFactory.fillDefaults().numColumns(2).margins(5, 5).applyTo(container);<NEW_LINE>title = new Label(container, SWT.NONE);<NEW_LINE>t...
setBackground(parent.getBackground());
101,562
public boolean satisfiedBy(Map<Retrievable, Concept> toTest) {<NEW_LINE>for (Map.Entry<Retrievable, ? extends Concept> entry : toTest.entrySet()) {<NEW_LINE>Retrievable id = entry<MASK><NEW_LINE>Concept compatible = requireCompatible.get(id);<NEW_LINE>if (compatible != null) {<NEW_LINE>Concept testConcept = entry.getVa...
.getKey().asRetrievable();
759,703
public File createBackupZipFile() throws IOException {<NEW_LINE>checkState();<NEW_LINE>if (mTmpFiles.isEmpty()) {<NEW_LINE>throw new IllegalStateException("empty backup list");<NEW_LINE>}<NEW_LINE>String zipFileName = "backup_" + System.currentTimeMillis() + ".zip";<NEW_LINE>File zipFile = new File(workingDir, zipFileN...
ZipEntry metadataEntry = new ZipEntry("metadata.json");
274,290
public Yaml visitMapping(Yaml.Mapping mapping, P p) {<NEW_LINE>Yaml.Mapping m = (Yaml.Mapping) super.visitMapping(mapping, p);<NEW_LINE>boolean changed = false;<NEW_LINE>List<Yaml.Mapping.Entry> entries = new ArrayList<>();<NEW_LINE>for (Yaml.Mapping.Entry entry : m.getEntries()) {<NEW_LINE>if (entry == scope || (entry...
m = m.withEntries(entries);
1,008,786
public Certificates decode(String data) throws DscListDecodeException {<NEW_LINE>try {<NEW_LINE>PublicKey publicKey = getPublicKeyFromString(distributionServiceConfig.getDigitalGreenCertificate().getDscClient().getPublicKey());<NEW_LINE>String signature = data.substring(0, data.indexOf(CONTENT_STARTS_CHAR)).trim();<NEW...
throw new DscListDecodeException("DSC list NOT decoded.", e);
487,942
protected WebResourceResponse handleAppRequest(String url) {<NEW_LINE>String path;<NEW_LINE>if (url.startsWith(ASSET_PREFIX)) {<NEW_LINE>path = url.substring(ASSET_PREFIX.length());<NEW_LINE>} else {<NEW_LINE>path = url.substring(url.indexOf("//localhost/") + 12);<NEW_LINE>}<NEW_LINE>InputStream stream;<NEW_LINE>try {<...
WebResourceResponse("text/plain", "utf-8", error);
331,038
private static StandardSyncOutput reduceReplicationOutput(final ReplicationOutput output) {<NEW_LINE>final long totalBytesReplicated = output.getReplicationAttemptSummary().getBytesSynced();<NEW_LINE>final long totalRecordsReplicated = output.getReplicationAttemptSummary().getRecordsSynced();<NEW_LINE>final StandardSyn...
getReplicationAttemptSummary().getStartTime());
353,061
private NV_ENC_QP parseQp(String optionName, String optionValue) {<NEW_LINE>String[] qps = optionValue.split(",");<NEW_LINE>NV_ENC_QP qp = null;<NEW_LINE>try {<NEW_LINE>if (qps.length == 1) {<NEW_LINE>int qpValue = Integer<MASK><NEW_LINE>qp = new NV_ENC_QP();<NEW_LINE>qp.qpInterP(qpValue);<NEW_LINE>qp.qpInterB(qpValue)...
.parseInt(qps[0]);
128,555
public void afterReload() {<NEW_LINE>try {<NEW_LINE>// Populate incomings<NEW_LINE>incomings = new ArrayList<>();<NEW_LINE>final <MASK><NEW_LINE>for (Part part : system.getParts()) {<NEW_LINE>final Measure measure = stack.getMeasureAt(part);<NEW_LINE>for (Voice voice : measure.getVoices()) {<NEW_LINE>final SlotVoice sl...
SystemInfo system = stack.getSystem();
683,228
private void extractAndPutDataTo(ExtensionTabData.Builder extensionTab, ExtensionDescription description, ResultSet set) throws SQLException {<NEW_LINE>boolean booleanValue = set.getBoolean(ExtensionPlayerValueTable.BOOLEAN_VALUE);<NEW_LINE>if (!set.wasNull()) {<NEW_LINE>extensionTab.putBooleanData(new ExtensionBoolean...
(description, isPlayerName, stringValue));
776,494
final DetachPolicyResult executeDetachPolicy(DetachPolicyRequest detachPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(detachPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
2,000
// ===========================================================<NEW_LINE>// Methods for/from SuperClass/Interfaces<NEW_LINE>// ===========================================================<NEW_LINE>@Override<NEW_LINE>public void onSensorChanged(final SensorEvent sensorEvent) {<NEW_LINE>int type = sensorEvent.sensor.getTyp...
y = sensorEvent.values[1];
1,745,153
public void init() throws Exception {<NEW_LINE>// Set Catalina path<NEW_LINE>setCatalinaHome();<NEW_LINE>setCatalinaBase();<NEW_LINE>initClassLoaders();<NEW_LINE>Thread.currentThread().setContextClassLoader(catalinaLoader);<NEW_LINE>SecurityClassLoad.securityClassLoad(catalinaLoader);<NEW_LINE>// Load our startup class...
] paramValues = new Object[1];
1,614,779
private DefaultTreeModel buildModel() {<NEW_LINE>final DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode();<NEW_LINE>final Ref<Integer> count = new Ref<Integer>(0);<NEW_LINE>Ref<Map<MemberChooserObject, ParentNode>> mapRef = new Ref<>();<NEW_LINE>mapRef.set(FactoryMap.create(key -> {<NEW_LINE>ParentNode node...
get(object.getParentNodeDelegate());
213,062
public void prepare(Map conf, TopologyContext context, OutputCollector collector) {<NEW_LINE>_messageTimeoutMs = context.maxTopologyMessageTimeout() * 1000L;<NEW_LINE>_lastRotate = System.currentTimeMillis();<NEW_LINE>_batches = new RotatingMap<>(2);<NEW_LINE>_context = context;<NEW_LINE>_collector = collector;<NEW_LIN...
(context.getComponentTasks(component));
500,591
public com.amazonaws.services.kafka.model.NotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.kafka.model.NotFoundException notFoundException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>Strin...
kafka.model.NotFoundException(null);
536,439
public EPPreparedQueryResult execute(FAFQueryMethodSelect select, ContextPartitionSelector[] contextPartitionSelectors, FAFQueryMethodAssignerSetter assignerSetter, ContextManagementService contextManagementService) {<NEW_LINE>FireAndForgetProcessor processor = select.getProcessors()[0];<NEW_LINE>FireAndForgetInstance ...
), select.getSubselects());
781,504
private void clearSymbols(Program program, AddressSetView clearView, TaskMonitor monitor) throws CancelledException {<NEW_LINE>if (clearView.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>monitor.initialize(clearView.getNumAddresses());<NEW_LINE>monitor.setMessage("Clearing symbols...");<NEW_LINE><MASK><NEW_LINE>// ...
SymbolTable symbolTable = program.getSymbolTable();
1,452,455
public void registerMap() {<NEW_LINE>// Entity ID<NEW_LINE>map(Type.INT);<NEW_LINE>// Hardcore<NEW_LINE>map(Type.BOOLEAN);<NEW_LINE>// Gamemode<NEW_LINE>map(Type.UNSIGNED_BYTE);<NEW_LINE>// Previous Gamemode<NEW_LINE>map(Type.BYTE);<NEW_LINE>// World List<NEW_LINE>map(Type.STRING_ARRAY);<NEW_LINE>// Registry<NEW_LINE>m...
, 0), Entity1_17Types.PLAYER);
177,111
final UpdateIPSetResult executeUpdateIPSet(UpdateIPSetRequest updateIPSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateIPSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
156,846
protected BeanDefinitionBuilder parseHandler(Element element, ParserContext parserContext) {<NEW_LINE>final BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(ContentEnricher.class);<NEW_LINE>IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder, element, "request-channel");<NEW_LINE...
propertySubElements(element, parserContext, builder);
6,528
ActionResult<Wo> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.class);<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW...
put(cacheCategory, cacheKey, wo);
1,023,355
final RegisterDeviceResult executeRegisterDevice(RegisterDeviceRequest registerDeviceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerDeviceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
361,052
public boolean exists(int x, int y, int zoom) {<NEW_LINE>SQLiteConnection db = getDatabase();<NEW_LINE>if (db == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>int z = getFileZoom(zoom);<NEW_LINE>SQLiteCursor cursor = // $NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$<NEW_LINE>db.// $NON-NLS-1$//$...
long time = System.currentTimeMillis();
1,224,936
public static // For initial query, partitionToken is expected to be null.<NEW_LINE>List<ChangeStreamRecord> executeChangeStreamQueryAndPrint(DatabaseClient dbClient, String changeStreamName, Timestamp startTimestamp, Timestamp endTimestamp, String partitionToken, ChangeStreamRecordMapper changeStreamRecordMapper) {<NE...
"partition_token => @partitionToken," + "heartbeat_milliseconds => @heartbeatMillis" + ")", changeStreamName);
1,760,907
public void onMessageReceived(RemoteMessage remoteMessage) {<NEW_LINE>// Data messages and notification messages are the two types of Firebase Cloud messages.<NEW_LINE>// Data messages are handled here in onMessageReceived whether the app is in the foreground<NEW_LINE>// or background. Data messages are the type tradit...
> data = remoteMessage.getData();
1,479,248
private int addMissingPartner(List<Card> booster, boolean partnerAllowed, int max, int i) {<NEW_LINE>Card sourceCard = booster.get(booster.size() - 1);<NEW_LINE>for (Ability ability : sourceCard.getAbilities()) {<NEW_LINE>// Check if fetched card has the PartnerWithAbility<NEW_LINE>if (ability instanceof PartnerWithAbi...
booster.set(0, card);
1,354,380
public void fetchNativeAppStart(Promise promise) {<NEW_LINE>final AppStartState appStartInstance = AppStartState.getInstance();<NEW_LINE>final Date appStartTime = appStartInstance.getAppStartTime();<NEW_LINE>final <MASK><NEW_LINE>if (appStartTime == null) {<NEW_LINE>logger.warning("App start won't be sent due to missin...
Boolean isColdStart = appStartInstance.isColdStart();
142,058
public CodeModifierResult runCodeModifierPlugins() {<NEW_LINE>PackageCompilation cachedCompilation = this.packageContext.cachedCompilation();<NEW_LINE>if (cachedCompilation != null) {<NEW_LINE>// Check whether there are engaged code modifiers, if not return<NEW_LINE>CompilerPluginManager compilerPluginManager = cachedC...
null, Collections.emptyList());
643,005
public void mouseClicked(MouseEvent event) {<NEW_LINE>JList list = (JList) event.getSource();<NEW_LINE>// Get index of item clicked<NEW_LINE>int index = list.locationToIndex(event.getPoint());<NEW_LINE>if (index < 0)<NEW_LINE>return;<NEW_LINE>int height = list.getUI().getCellBounds(<MASK><NEW_LINE>Point cellLocation = ...
formattersList, index, index).height;
1,628,814
public static void waitForTableToBecomeActive(AmazonDynamoDB dynamo, String tableName, int timeout, int interval) {<NEW_LINE>if (timeout < 0)<NEW_LINE>throw new AmazonClientException("Timeout must be >= 0");<NEW_LINE>if (interval <= 0 || interval >= timeout)<NEW_LINE>throw new AmazonClientException("Interval must be > ...
AmazonClientException("Table " + tableName + " never became active");
1,014,828
protected void handleEndtagAccesspath() {<NEW_LINE>// Record the access path for the current element<NEW_LINE>if (isSource || isSink) {<NEW_LINE>// Clean up the path elements<NEW_LINE>if (pathElements != null && pathElements.isEmpty() && pathElementTypes != null && pathElementTypes.isEmpty()) {<NEW_LINE>pathElements = ...
fromPathElements(pathElements, pathElementTypes, sstype);
1,098,890
private static void configureAnalyzer(Project proj, Circuit circuit, Analyzer analyzer, Map<Instance, String> pinNames, ArrayList<Var> inputVars, ArrayList<Var> outputVars) {<NEW_LINE>analyzer.getModel().setVariables(inputVars, outputVars);<NEW_LINE>// If there are no inputs or outputs, we stop with that tab selected<N...
getModel(), circuit, pinNames);
895,835
public com.amazonaws.services.connect.model.InvalidRequestException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.connect.model.InvalidRequestException invalidRequestException = new com.amazonaws.services.connect.model.InvalidRequestException(null);<NEW_LINE>i...
JsonToken token = context.getCurrentToken();
23,977
private File expand() {<NEW_LINE>JarFile jar = null;<NEW_LINE>String jarFileName = getJarFileNameNew();<NEW_LINE>File destDir = new File(jarFileName.substring(0, jarFileName.indexOf(".jar")));<NEW_LINE>if (!destDir.isDirectory()) {<NEW_LINE>System.out.println("Expanding " + jarFileName);<NEW_LINE>try {<NEW_LINE>jar = n...
JarEntry file = enumr.nextElement();
447,307
private static void runStatementWithRetry(ShouldRetry retryAnnotation, Statement base, Description description) {<NEW_LINE>Preconditions.checkArgument(retryAnnotation.numAttempts() > 0, <MASK><NEW_LINE>for (int attempt = 1; attempt <= retryAnnotation.numAttempts(); attempt++) {<NEW_LINE>try {<NEW_LINE>base.evaluate();<...
"Number of attempts should be positive, but found %s", retryAnnotation.numAttempts());
1,617,628
public int failInProgressUploads(UploadResult fail) {<NEW_LINE>Log_OC.v(TAG, "Updating state of any killed upload");<NEW_LINE>ContentValues cv = new ContentValues();<NEW_LINE>cv.put(ProviderTableMeta.UPLOADS_STATUS, UploadStatus.UPLOAD_FAILED.getValue());<NEW_LINE>cv.put(ProviderTableMeta.UPLOADS_LAST_RESULT, fail != n...
.toString(result) + " uploads where abruptly interrupted");
1,090,743
public List<I_M_HU_PI_Item_Product> retrieveHUPIItemProductRecords(@NonNull final Properties ctx, @NonNull final ProductId productId, @Nullable final BPartnerId bpartnerId, final boolean includeVirtualItem) {<NEW_LINE>final IHUPIItemProductDAO hupiItemProductDAO = Services.get(IHUPIItemProductDAO.class);<NEW_LINE>final...
Services.get(ISysConfigBL.class);
1,123,661
public Response<V> build() {<NEW_LINE>Map<String, String> headers = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);<NEW_LINE>if (_headers != null) {<NEW_LINE>headers.putAll(_headers);<NEW_LINE>}<NEW_LINE>ProtocolVersion protocolVersion = (_protocolVersion == null) ? AllProtocolVersions.BASELINE_PROTOCOL_VERSION : _protoc...
(id, false, protocolVersion));
1,114,827
public synchronized void unregisterDevices(String peerID) {<NEW_LINE>mLogger.v(TAG, String.format("unregisterDevices called: peerID=%s", mLogger.sensitiveObject(peerID)));<NEW_LINE>Peer peer;<NEW_LINE>if ((peer = mPeers.get(peerID)) == null) {<NEW_LINE>mLogger.i(TAG, String.format("unregisterDevices error: Peer not fou...
mLogger.sensitiveObject(peerID)));
1,167,979
public void publishVideoData(byte[] data, int size, int dts) {<NEW_LINE>if (data == null || data.length == 0 || dts < 0) {<NEW_LINE>mHandler.notifyRtmpIllegalArgumentException(new IllegalArgumentException("Invalid Video Data"));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!connected) {<NEW_LINE>mHandler.notifyRtmpIllegalS...
getHeader().setAbsoluteTimestamp(dts);
303,364
public static InputStream stream(String path) {<NEW_LINE>try {<NEW_LINE>if (path.startsWith("file://")) {<NEW_LINE>return new File2Stream().toStream(path);<NEW_LINE>} else if (path.startsWith("jdbc://")) {<NEW_LINE>return new <MASK><NEW_LINE>} else if (path.startsWith("jar://")) {<NEW_LINE>return new Jar2Stream().toStr...
Jdbc2Stream().toStream(path);
961,557
public void updateAttributesFromInfo(String reason) {<NEW_LINE>SBBreakpoint bpt = (SBBreakpoint) getModelObject();<NEW_LINE>String description = getDescription(1);<NEW_LINE>String[] <MASK><NEW_LINE>if (split[1].contains("regex")) {<NEW_LINE>expression = split[1];<NEW_LINE>expression = expression.substring(expression.in...
split = description.split(",");
346,103
public static void main(String[] args) throws IOException {<NEW_LINE>List<PainlessContextInfo> contexts = ContextGeneratorCommon.getContextInfos();<NEW_LINE>Path rootDir = resetRootDir();<NEW_LINE>ContextGeneratorCommon.PainlessInfos infos;<NEW_LINE>JavaClassFilesystemResolver jdksrc = getJdkSrc();<NEW_LINE>if (jdksrc ...
getPreferredName(), infos.common);
1,348,163
protected void performAction(Node[] activatedNodes) {<NEW_LINE>DockerContainer container = activatedNodes[0].getLookup().lookup(DockerContainer.class);<NEW_LINE>if (container != null) {<NEW_LINE>JButton commitButton = new JButton();<NEW_LINE>Mnemonics.setLocalizedText(commitButton, Bundle.LBL_Commit());<NEW_LINE>Commit...
DialogDescriptor.DEFAULT_ALIGN, null, null);
1,732,903
void addRules(String repositoryKey, List<Class<? extends JavaScriptCheck>> ruleClasses) {<NEW_LINE>RulesDefinition.Context context = new RulesDefinition.Context();<NEW_LINE>RulesDefinition.NewRepository repository = context.createRepository(repositoryKey, JavaScriptLanguage.KEY).setName("dummy");<NEW_LINE>RuleMetadataL...
null, Collections.emptyList());
1,814,144
public Map<String, Object> postProcessOperationsWithModels(Map<String, Object> objs, List<ModelMap> allModels) {<NEW_LINE>objs = super.postProcessOperationsWithModels(objs, allModels);<NEW_LINE>Map<String, Object> operations = (Map<String, Object>) objs.get("operations");<NEW_LINE>HashMap<String, CodegenModel> modelMap...
(p, modelMaps, processedModelMaps));
1,183,995
private static StarlarkInfo plus(StarlarkInfo x, StarlarkInfo y) throws EvalException {<NEW_LINE>Provider xprov = x.provider;<NEW_LINE>Provider yprov = y.provider;<NEW_LINE>if (!xprov.equals(yprov)) {<NEW_LINE>throw Starlark.errorf("Cannot use '+' operator on instances of different providers (%s and %s)", xprov.getPrin...
y.table[yi + ysize];
42,222
public static void main(String[] args) {<NEW_LINE>final String USAGE = "\n" + "Usage: " <MASK><NEW_LINE>if (args.length != 2) {<NEW_LINE>System.out.println(USAGE);<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>String originationNumber = args[0];<NEW_LINE>String destinationNumber = args[1];<NEW_LINE>System.out.println("S...
+ "SendVoiceMessage <originationNumber> <destinationNumber> \n\n" + "Where:\n" + " originationNumber - the phone number or short code that you specify has to be associated with your Amazon Pinpoint account. For best results, specify long codes in E.164 format (for example, +1-555-555-5654). " + " destinationNumber - ...
596,693
Hash hashHeader(final BlockHeader header) {<NEW_LINE>final BytesValueRLPOutput out = new BytesValueRLPOutput();<NEW_LINE>// Encode header without nonce and mixhash<NEW_LINE>out.startList();<NEW_LINE>out.writeBytes(header.getParentHash());<NEW_LINE>out.writeBytes(header.getOmmersHash());<NEW_LINE>out.writeBytes(header.g...
writeLongScalar(header.getTimestamp());
1,490,726
private OracleNoSQLQueryInterpreter translateQuery(Queue clauseQueue, EntityMetadata entityMetadata) {<NEW_LINE>OracleNoSQLQueryInterpreter interpreter = new OracleNoSQLQueryInterpreter(getColumns(getKunderaQuery()<MASK><NEW_LINE>interpreter.setClauseQueue(clauseQueue);<NEW_LINE>String operatorWithIdClause = null;<NEW_...
.getResult(), entityMetadata));
1,848,146
public static void C_OrderLine(MOrderLine ol) {<NEW_LINE>if (ol.isConsumesForecast())<NEW_LINE>return;<NEW_LINE>MPPMRP mrp = getQuery(ol, null, null).firstOnly();<NEW_LINE>if (mrp == null) {<NEW_LINE>mrp = new MPPMRP(ol.getCtx(), 0, ol.get_TrxName());<NEW_LINE>mrp.<MASK><NEW_LINE>}<NEW_LINE>mrp.setAD_Org_ID(ol.getAD_Or...
setC_OrderLine_ID(ol.getC_OrderLine_ID());
1,379,480
public void init() throws Exception {<NEW_LINE>PartitionGroupStrategy partitionGroupStrategy = new DefaultPartitionGroupStrategy();<NEW_LINE>List<List<Integer>> groupPartitions = partitionGroupStrategy.getGroupInfo(serverDataManager.partitionManager.getAssignments());<NEW_LINE>LOG.info("Assignments info: " + serverData...
0L, "Group " + groupIndex + " restarting...");
423,054
void addUnique(Feature parsedFeature) {<NEW_LINE>String parsedFileName = getFileName(parsedFeature);<NEW_LINE>Map<String, Feature> existingFeatures = sourceToFeature.get(parsedFeature.getSource());<NEW_LINE>if (existingFeatures != null) {<NEW_LINE>// Same contents but different file names was probably<NEW_LINE>// inten...
existingFeature = existingFeatures.get(parsedFileName);
1,320,023
public RuntimeException leakTraceAsFakeException() {<NEW_LINE>if (!leakFound) {<NEW_LINE>throw new UnsupportedOperationException("leakTraceAsFakeException() can only be called when leakFound is true");<NEW_LINE>}<NEW_LINE>LeakTraceElement firstElement = leakTrace.elements.get(0);<NEW_LINE>String rootSimpleName = classS...
!= null ? element.referenceName : "leaking";
1,705,520
private Mono<Response<Flux<ByteBuffer>>> createWithResponseAsync(String resourceGroupName, String serverName, ServerForCreate parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cann...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
1,730,917
public NestedArray<T> append(ActiveTail<T> tail) {<NEW_LINE>if (last(last(array)).length < 32) {<NEW_LINE>Object[][][][] updatedNodes = Arrays.copyOf(array, array.length, Object[][<MASK><NEW_LINE>updatedNodes[updatedNodes.length - 1] = Arrays.copyOf(last(updatedNodes), last(updatedNodes).length, Object[][][].class);<NE...
][][].class);
949,943
protected int assignToNearestCluster() {<NEW_LINE>int changed = 0;<NEW_LINE>for (DBIDIter it = relation.iterDBIDs(); it.valid(); it.advance()) {<NEW_LINE>final int orig = assignment.intValue(it);<NEW_LINE>// Compute the current bound:<NEW_LINE>final double l = lower.doubleValue(it);<NEW_LINE>double u = upper.doubleValu...
fv = relation.get(it);
641,683
public void processNewResult(Object newResult) {<NEW_LINE>Database database = ResultUtil.findDatabase(newResult);<NEW_LINE>final ArrayList<AbstractRStarTree<?, ?, ?>> indexes = ResultUtil.filterResults(newResult, AbstractRStarTree.class);<NEW_LINE>if (indexes == null || indexes.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<...
getNode(leaf.getPageID());
1,634,459
public V put(K key, V value) {<NEW_LINE>if (key_chain.contains(key)) {<NEW_LINE>V old_value = content_map.get(key);<NEW_LINE>if (old_value == value) {<NEW_LINE>return value;<NEW_LINE>}<NEW_LINE>HashChain<K> kc = back_map.get(old_value);<NEW_LINE>kc.remove(key);<NEW_LINE>if (kc.isEmpty()) {<NEW_LINE>value_chain.remove(o...
back_map.put(value, kc);
149,033
private static void testBatch(String ip, int port) throws ClassNotFoundException, SQLException {<NEW_LINE>Class.forName(Config.JDBC_DRIVER_NAME);<NEW_LINE>try (Connection connection = DriverManager.getConnection(Config.IOTDB_URL_PREFIX + String.format("%s:%d/", ip<MASK><NEW_LINE>Statement statement = connection.createS...
, port), "root", "root");
432,410
public CholeskyDecompositionResult evaluate(DoubleMatrix matrix, double symmetryThreshold, double positivityThreshold) {<NEW_LINE>ArgChecker.notNull(matrix, "Matrix null");<NEW_LINE>int nbRow = matrix.rowCount();<NEW_LINE>int nbCol = matrix.columnCount();<NEW_LINE>ArgChecker.isTrue(nbRow == nbCol, "Matrix not square");...
, Math.abs(colrow));
1,827,652
public static Table downLoadFromUrl(String urlStr, String charset, String method, String content, ArrayList<String> headers) throws IOException {<NEW_LINE>URL url = new URL(urlStr);<NEW_LINE>HttpURLConnection conn = (HttpURLConnection) url.openConnection();<NEW_LINE>conn.setConnectTimeout(3 * 1000);<NEW_LINE>conn.setRe...
add(conn.getResponseMessage());
800,563
public static Object toGraphObject(final Object sourceObject, final Integer outputDepth) {<NEW_LINE>if (sourceObject instanceof GraphObject) {<NEW_LINE>return sourceObject;<NEW_LINE>} else if (sourceObject instanceof Iterable) {<NEW_LINE>final List<GraphObject> <MASK><NEW_LINE>for (final Object o : (Iterable) sourceObj...
res = new ArrayList<>();
1,819,809
protected void updateBendPoints(InternalRelationship[] relationshipsToConsider) {<NEW_LINE>for (int i = 0; i < relationshipsToConsider.length; i++) {<NEW_LINE>InternalRelationship relationship = relationshipsToConsider[i];<NEW_LINE>List bendPoints = relationship.getBendPoints();<NEW_LINE>if (bendPoints.size() > 0) {<NE...
InternalNode sourceNode = relationship.getSource();
244,779
protected void initGame() {<NEW_LINE>var controllerService = getService(ControllerInputService.class);<NEW_LINE>controllerService.getGameControllers().forEach(con -> con.addInputHandler(getInput()));<NEW_LINE>entityBuilder().buildScreenBoundsAndAttach(40);<NEW_LINE>createPlatforms();<NEW_LINE>player = createPlayer(100,...
new Point2D(20, 30));
1,533,135
private static void assertTopic(final KafkaTopicClient client, final String topic, final Map<String, Literal> config, final boolean assertExists) {<NEW_LINE>final boolean topicExists;<NEW_LINE>try {<NEW_LINE>topicExists = client.isTopicExists(topic);<NEW_LINE>} catch (final Exception e) {<NEW_LINE>throw new KsqlExcepti...
replicas().size());
1,465,182
public DBTTaskRunStatus executeTask(@NotNull DBRRunnableContext runnableContext, @NotNull DBTTask task, @NotNull Locale locale, @NotNull Log log, @NotNull PrintStream logStream, @NotNull DBTTaskExecutionListener listener) throws DBException {<NEW_LINE>DataTransferSettings[] settings = new DataTransferSettings[1];<NEW_L...
"Error loading task settings", e.getTargetException());
1,676,630
protected Control createContents(Composite ancestor) {<NEW_LINE>initializeDialogUnits(ancestor);<NEW_LINE>noDefaultAndApplyButton();<NEW_LINE>GridLayout layout = new GridLayout();<NEW_LINE>layout.numColumns = 1;<NEW_LINE>layout.marginHeight = 0;<NEW_LINE>layout.marginWidth = 0;<NEW_LINE>ancestor.setLayout(layout);<NEW_...
ancestor, "Add, edit or remove ngrok installations. By default the checked ngrok installation will be used to expose apps", 1, 300);
335,816
public void visit(final ClassOrInterfaceDeclaration n, final A arg) {<NEW_LINE>visitComment(n.getComment(), arg);<NEW_LINE>if (n.getJavaDoc() != null) {<NEW_LINE>n.getJavaDoc().accept(this, arg);<NEW_LINE>}<NEW_LINE>for (final AnnotationExpr a : n.getAnnotations()) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>n.getNameExpr()....
a.accept(this, arg);
734,483
static boolean start() {<NEW_LINE>if (MixinBootstrap.isSubsystemRegistered()) {<NEW_LINE>if (!MixinBootstrap.checkSubsystemVersion()) {<NEW_LINE>throw new MixinInitialisationError("Mixin subsystem version " + MixinBootstrap.getActiveSubsystemVersion(<MASK><NEW_LINE>}<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>MixinBoot...
) + " was already initialised. Cannot bootstrap version " + MixinBootstrap.VERSION);
1,138,928
protected Throwable doInBackground(String... params) {<NEW_LINE>// Get wakelock<NEW_LINE>PowerManager pm = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);<NEW_LINE>PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "XPrivacy.Register");<NEW_LINE>wl.acquire();<NEW_LINE>try {<NEW_L...
getUserId(Process.myUid());
41,803
private void recover(StartRecoveryRequest request, ActionListener<RecoveryResponse> listener) throws IOException {<NEW_LINE>final IndexService indexService = indicesService.indexServiceSafe(request.shardId().getIndex());<NEW_LINE>final IndexShard shard = indexService.getShard(request.shardId().id());<NEW_LINE>final <MA...
ShardRouting routingEntry = shard.routingEntry();
1,161,426
public void onBindViewHolder(@NonNull MvItemViewHolder holder, int position) {<NEW_LINE>final String mvsDir = Config.VIDEO_STORAGE_DIR + "mvs/";<NEW_LINE>try {<NEW_LINE>if (position == 0) {<NEW_LINE>holder.mName.setText("None");<NEW_LINE>holder.mIcon.setImageResource(R.mipmap.qn_none_filter);<NEW_LINE>holder.mIcon.setO...
mv.getString("colorDir") + ".mp4";
1,058,814
public boolean cancelToken(EsToken tokenToCancel) {<NEW_LINE>ClusterInfo remoteInfo = clusterInfo;<NEW_LINE>if (ClusterName.UNNAMED_CLUSTER_NAME.equals(remoteInfo.getClusterName().getName())) {<NEW_LINE>remoteInfo = mainInfo();<NEW_LINE>}<NEW_LINE>String serviceForToken = tokenToCancel.getClusterName();<NEW_LINE>if (!S...
FastByteArrayOutputStream out = new FastByteArrayOutputStream(256);