idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
163,742
void createWorkScene(SceneWorkingGraph src, SceneWorkingGraph dst) {<NEW_LINE>BoofMiscOps.checkTrue(!commonViews.isEmpty());<NEW_LINE>// Local copy of the 'src' scene<NEW_LINE>workScene.setTo(src);<NEW_LINE>// All views and cameras that are in 'src' will be modified<NEW_LINE>knownViews.resetResize(workScene.listViews.s...
get(i).dst.inliers;
525,621
public void marshall(Firewall firewall, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (firewall == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(firewall.getFirewallName(), FIREWALLNAME_BINDING);<NEW_LINE>...
firewall.getFirewallId(), FIREWALLID_BINDING);
343,886
// debug output<NEW_LINE>public void toStandardOut(FeatureArrayIndexer ffi, int level) {<NEW_LINE>String blanks = "";<NEW_LINE>for (int i = 0; i < level; i++) blanks += " ";<NEW_LINE>if (kids != null) {<NEW_LINE>String featureName = ffi.getFeatureDefinition().getFeatureName(featureIndex);<NEW_LINE>System.out.println(...
ffi.getFeatureVectors(from, to);
1,360,490
private Mono<Response<Void>> deleteSourceControlSlotWithResponseAsync(String resourceGroupName, String name, String slot, String additionalFlags, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required ...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
250,551
public boolean configure(String name, Map<String, Object> params) throws ConfigurationException {<NEW_LINE>protoPortsAndSecurityGroupNameSearch = createSearchBuilder();<NEW_LINE>protoPortsAndSecurityGroupNameSearch.and("proto", protoPortsAndSecurityGroupNameSearch.entity().getProtocol(), SearchCriteria.Op.EQ);<NEW_LINE...
), SearchCriteria.Op.EQ);
1,706,354
public DependencyResult toDependencyTree(List<Dependency> deps, List<RemoteRepository> mainRepos) throws BootstrapMavenException {<NEW_LINE>DependencyResult result = new DependencyResult(new DependencyRequest().setCollectRequest(new CollectRequest(deps, Collections.<MASK><NEW_LINE>DefaultDependencyNode root = new Defau...
emptyList(), mainRepos)));
1,575,848
public DoubleMatrix[] apply(DoubleArray x) {<NEW_LINE>ArgChecker.notNull(x, "x");<NEW_LINE>ArgChecker.isTrue(domain.apply(x), "point {} is not in the function domain", x.toString());<NEW_LINE>int n = x.size();<NEW_LINE>DoubleMatrix[] y = new DoubleMatrix[3];<NEW_LINE>DoubleMatrix[] res = new DoubleMatrix[n];<NEW_LINE>d...
] = function.apply(xPlusOneEps);
1,047,074
public FileVisitResult preVisitDirectory(java.nio.file.Path dir, BasicFileAttributes attrs) throws IOException {<NEW_LINE>int count = dir.getNameCount();<NEW_LINE>if (count == 2) {<NEW_LINE>// e.g. /modules/java.base<NEW_LINE>java.nio.file.Path mod = dir.getName(1);<NEW_LINE>if ((JRTUtil.MODULE_TO_LOAD != null && JRTUt...
CONTINUE : visitor.visitModule(mod);
1,049,675
public Object evaluateRecord(OIdentifiable iRecord, ODocument iCurrentResult, OSQLFilterCondition iCondition, Object iLeft, Object iRight, OCommandContext iContext, final ODocumentSerializer serializer) {<NEW_LINE>OLuceneFullTextIndex index = involvedIndex(iRecord, iCurrentResult, iCondition, iLeft, iRight);<NEW_LINE>i...
iLeft, iRight, index, memoryIndex);
429,618
final CreateDomainResult executeCreateDomain(CreateDomainRequest createDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,843,076
private static void checkConnection(ModuleTypeRegistry mtRegistry, Connection connection, Input input, List<? extends @NonNull Trigger> triggers, List<? extends @NonNull Action> actions) {<NEW_LINE>Map<String, Action> actionsMap = new HashMap<>();<NEW_LINE>for (Action a : actions) {<NEW_LINE>actionsMap.put(a.getId(), a...
input, actionType.getOutputs());
49,362
public PagePosition handleMouseClick(int x, int y, int width, int height, PagePosition current, int index, int mouseX, int mouseY) {<NEW_LINE>if (current.pixel + PIXEL_HEIGHT > height) {<NEW_LINE>current = current.newPage();<NEW_LINE>}<NEW_LINE>x += OFFSET.x;<NEW_LINE>y += OFFSET.y + current.pixel;<NEW_LINE>if (current...
= ITEM_POSITION[itemX][itemY];
874,073
public void rip() throws IOException {<NEW_LINE>logger.info(" Retrieving " + this.url.toExternalForm());<NEW_LINE>Document doc = Http.url(this.url).get();<NEW_LINE>String html = doc<MASK><NEW_LINE>Pattern p = Pattern.compile("^.*flashvars_[0-9]+ = (.+});.*$", Pattern.DOTALL);<NEW_LINE>Matcher m = p.matcher(html);<NE...
.body().html();
1,048,577
public OBinaryResponse executeDatabaseOpen37(OOpen37Request request) {<NEW_LINE>connection.setTokenBased(true);<NEW_LINE>connection.getData().supportsLegacyPushMessages = false;<NEW_LINE>connection.getData().collectStats = true;<NEW_LINE>connection.getData().driverName = handshakeInfo.getDriverName();<NEW_LINE>connecti...
.protocolVersion = handshakeInfo.getProtocolVersion();
1,761,344
public static OneResponse chmod(Client client, int id, String octet) {<NEW_LINE>int owner_u = (Integer.parseInt(octet.substring(0, 1)) & 4) != 0 ? 1 : 0;<NEW_LINE>int owner_m = (Integer.parseInt(octet.substring(0, 1)) & 2) != 0 ? 1 : 0;<NEW_LINE>int owner_a = (Integer.parseInt(octet.substring(0, 1)) & <MASK><NEW_LINE>i...
1) != 0 ? 1 : 0;
482,099
public void trimToSize() {<NEW_LINE>int currentLength = lengthInternal();<NEW_LINE>int currentCapacity = capacityInternal();<NEW_LINE>// Check if the StringBuilder is compressed<NEW_LINE>if (String.COMPACT_STRINGS && count >= 0) {<NEW_LINE>// Check if the StringBuilder is not shared<NEW_LINE>if (capacity >= 0 && curren...
0, newData, 0, currentLength);
1,326,518
public static void horizontal(Kernel1D_S32 kernel, InterleavedS16 input, InterleavedI16 output) {<NEW_LINE>final int offset = kernel.getOffset();<NEW_LINE>final <MASK><NEW_LINE>final int height = input.getHeight();<NEW_LINE>final int numBands = input.getNumBands();<NEW_LINE>final int[] pixel = new int[numBands];<NEW_LI...
int width = input.getWidth();
475,028
private void addNodesAndEdgesForQuerying(Vertex columnIn, Vertex columnOut, Vertex process) {<NEW_LINE>if (isColumnEmpty(columnIn) || isColumnEmpty(columnOut)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final SubProcessDetails subProcessDetails = new SubProcessDetails();<NEW_LINE>subProcessDetails.setProcessGuid(this.graph...
), subProcessDetails.getProcessGuid());
1,360,891
final ExecuteSqlResult executeExecuteSql(ExecuteSqlRequest executeSqlRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(executeSqlRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
834,400
protected Object handleInterrupt(RubyThread self, RubySymbol timing, RubyProc block, @Cached BranchProfile beforeProfile, @Cached BranchProfile afterProfile) {<NEW_LINE>// TODO (eregon, 12 July 2015): should we consider exceptionClass?<NEW_LINE>final InterruptMode newInterruptMode = symbolToInterruptMode(getLanguage(),...
prevSideEffects = safepoint.setAllowSideEffects(allowSideEffects);
433,806
public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new ResultSetQueryTypePatternNoWindow());<NEW_LINE>execs.add(new ResultSetQueryTypePatternWithWindow());<NEW_LINE>execs.add(new ResultSetQueryTypeOrderByWildcard());<NEW_LIN...
.add(new ResultSetQueryTypeRowPerGroup());
183,203
public void testHungRequestDynamicEnable() throws Exception {<NEW_LINE>CommonTasks.writeLogMsg(Level.INFO, "Starting server without Request Timing Feature..");<NEW_LINE>server.setServerConfigurationFile("server_withOutReqTiming.xml");<NEW_LINE>// feature update started message<NEW_LINE>server.waitForStringInLog("CWWKF0...
server.waitForStringInLogUsingMark("CWWKT0016I", 10000);
1,757,520
public void bind(AdditionalItemsLoadable item) {<NEW_LINE>this.currentItem = item;<NEW_LINE>if (item.isLoading()) {<NEW_LINE>// TransitionManager.beginDelayedTransition((ViewGroup) itemView);<NEW_LINE>moreItemsCount.setVisibility(View.GONE);<NEW_LINE>loadMoreButton.setVisibility(View.GONE);<NEW_LINE>loadingView.setVisi...
"+" + item.getMoreItemsCount());
1,461,275
public void execute(State state) throws WorkflowExecutionException {<NEW_LINE>TlsContext ctx = state.getTlsContext(connectionAlias);<NEW_LINE>StringBuilder sb = new StringBuilder("\n\nContext: " + ctx);<NEW_LINE>sb.append("\n (Record Layer) ");<NEW_LINE>if (ctx.getSelectedCipherSuite() == null) {<NEW_LINE>sb.append("\...
(ctx.getLastClientVerifyData()));
1,543,152
protected OffsetsEnum createOffsetsEnumFromReader(LeafReader leafReader, int doc) throws IOException {<NEW_LINE>final Terms termsIndex = leafReader.terms(getField());<NEW_LINE>if (termsIndex == null) {<NEW_LINE>return OffsetsEnum.EMPTY;<NEW_LINE>}<NEW_LINE>final List<OffsetsEnum> offsetsEnums = new ArrayList<>();<NEW_L...
insensitiveTerms, termsIndex, doc, offsetsEnums);
1,814,474
public GetAllResult call() {<NEW_LINE>Map<ByteArray, List<Versioned<byte[]>>> retrieved = Collections.emptyMap();<NEW_LINE>Throwable exception = null;<NEW_LINE>List<NodeValue<ByteArray, byte[]><MASK><NEW_LINE>long startNs = System.nanoTime();<NEW_LINE>try {<NEW_LINE>retrieved = innerStores.get(node.getId()).getAll(node...
> nodeValues = Lists.newArrayList();
1,825,010
public boolean isWriteTypeInfo(Object object, Type fieldType) {<NEW_LINE>long features = context.features;<NEW_LINE>if ((features & Feature.WriteClassName.mask) == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (object == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>Class fieldClass = null;<NE...
Class objectClass = object.getClass();
1,563,785
public Bitmap coverPDFNative(PageUrl pageUrl) {<NEW_LINE>try {<NEW_LINE>LOG.d("Cover-PDF-navite");<NEW_LINE>PdfRenderer renderer = new PdfRenderer(ParcelFileDescriptor.open(new File(pageUrl.getPath()), ParcelFileDescriptor.MODE_READ_ONLY));<NEW_LINE>PdfRenderer.Page page = renderer.openPage(0);<NEW_LINE>final float k =...
() / page.getWidth();
56,551
final UpdateGeoMatchSetResult executeUpdateGeoMatchSet(UpdateGeoMatchSetRequest updateGeoMatchSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateGeoMatchSetRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<UpdateGeoMatchSetReq...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,592,633
protected void initialize(NewProjectInput input) {<NEW_LINE>super.initialize(input);<NEW_LINE>// set type<NEW_LINE>if (fixedProjectType_ != null) {<NEW_LINE>projectTypeSelect_.setVisible(false);<NEW_LINE>} else {<NEW_LINE>projectTypeSelect_.<MASK><NEW_LINE>}<NEW_LINE>// set engine<NEW_LINE>engineSelect_.setValue(lastOp...
setValue(lastOptions_.getType());
758,235
private void visitCall(NodeTraversal t, Node n) {<NEW_LINE>checkCallConventions(t, n);<NEW_LINE><MASK><NEW_LINE>JSType childType = getJSType(child).restrictByNotNullOrUndefined();<NEW_LINE>if (!childType.canBeCalled()) {<NEW_LINE>report(n, NOT_CALLABLE, childType.toString());<NEW_LINE>ensureTyped(n);<NEW_LINE>return;<N...
Node child = n.getFirstChild();
1,019,375
public static void shareImageAtUri(@NonNull final BaseActivity activity, @NonNull final String uri) {<NEW_LINE>downloadImageToSave(activity, uri, (info, cacheFile, mimetype) -> {<NEW_LINE>final Uri externalUri = CacheContentProvider.getUriForFile(cacheFile.getId(), mimetype, getExtensionFromPath(info.urlOriginal).orEls...
.newRawUri(null, externalUri));
1,050,204
public void createKey() {<NEW_LINE>KeyClient keyClient = createClient();<NEW_LINE>// BEGIN: com.azure.security.keyvault.keys.KeyClient.createKey#String-KeyType<NEW_LINE>KeyVaultKey key = keyClient.createKey("keyName", KeyType.EC);<NEW_LINE>System.out.printf("Created key with name: %s and id: %s%n", key.getName(), key.g...
ecKey = keyClient.createEcKey(createEcKeyOptions);
89,211
public T sample(Random rand) {<NEW_LINE>if (entries.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>double n = rand.nextDouble(0, chanceSum);<NEW_LINE>// Do a binary search to find the first element with a cumulative probability greater than n<NEW_LINE>int i = entries.size() / 2;<NEW_LINE>int d = entries.size() ...
entries.size() - 1);
564,784
private void runEncrypt() throws IOException {<NEW_LINE>boolean isOutputToDir = output.toFile().isDirectory();<NEW_LINE>Path outFile = isOutputToDir ? output.resolve(input.getFileName() + ".ghostryde") : output;<NEW_LINE>Path lenOutFile = isOutputToDir ? output.resolve(input.getFileName() + ".length") : null;<NEW_LINE>...
toFile()).openBufferedStream();
1,544,947
private static boolean isEnabled(Preferences node, Element el) {<NEW_LINE>switch(el.getKind()) {<NEW_LINE>case ANNOTATION_TYPE:<NEW_LINE>case CLASS:<NEW_LINE>case ENUM:<NEW_LINE>case INTERFACE:<NEW_LINE>case // ???<NEW_LINE>TYPE_PARAMETER:<NEW_LINE>return node.<MASK><NEW_LINE>case CONSTRUCTOR:<NEW_LINE>case METHOD:<NEW...
getBoolean(MarkOccurencesSettingsNames.TYPES, true);
661,524
public void replayDropDb(String dbName, boolean isForceDrop) throws DdlException {<NEW_LINE>tryLock(true);<NEW_LINE>try {<NEW_LINE>Database db = fullNameToDb.get(dbName);<NEW_LINE>db.writeLock();<NEW_LINE>try {<NEW_LINE>Set<String> tableNames = db.getTableNamesWithLock();<NEW_LINE>unprotectDropDb(db, isForceDrop, true)...
get(db.getClusterName());
616,285
public StoreRequestEvents started() {<NEW_LINE>dispatcher.post(startedEvent);<NEW_LINE>finishedEventBuilder.getStoreBuilder().<MASK><NEW_LINE>finishedEventBuilder.getStoreBuilder().setArtifactSizeBytes(artifactSizeBytes).setRuleKeys(info.getRuleKeys());<NEW_LINE>return new StoreRequestEvents() {<NEW_LINE><NEW_LINE>@Ove...
setRuleKeys(info.getRuleKeys());
815,294
private void collectSystemStatistics(@NotNull final Statistic statistic) {<NEW_LINE>if (!SYSTEM_METRICS_ENABLED) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final OperatingSystem operatingSystem;<NEW_LINE>final HardwareAbstractionLayer hardware;<NEW_LINE>try {<NEW_LINE>final SystemInfo systemInfo = new SystemInfo();<NEW_LIN...
setOsVersion(version.getVersion());
41,545
final CheckDomainTransferabilityResult executeCheckDomainTransferability(CheckDomainTransferabilityRequest checkDomainTransferabilityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(checkDomainTransferabilityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
237,065
public TextComponent addStyle(@NotNull Author author, @NotNull String message, boolean canColor, boolean isLeader) {<NEW_LINE>if (canColor) {<NEW_LINE>if (isLeader) {<NEW_LINE>return LocaleLoader.getTextComponent("Chat.Style.Party.Leader", author.getAuthoredName(ChatChannel.PARTY), message);<NEW_LINE>} else {<NEW_LINE>...
ChatChannel.PARTY), message));
445,657
public void testJMS1CloseSession() throws JMSException, InterruptedException, TestException {<NEW_LINE>try (QueueConnection connection = queueConnectionFactory_.createQueueConnection()) {<NEW_LINE>QueueSession session = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);<NEW_LINE>StringBuffer sentMessageTex...
producer.send(sentMessage, completionListener);
1,313,580
private void doSearch(String query, SecuritySearchProvider.Type type, TableViewer resultTable) {<NEW_LINE>try {<NEW_LINE>getContainer().run(true, false, progressMonitor -> {<NEW_LINE>List<SecuritySearchProvider> providers = Factory.getSearchProvider();<NEW_LINE>progressMonitor.beginTask(Messages.SecurityMenuSearch4Secu...
.search(query, type));
205,065
public void init(Container container) throws Exception {<NEW_LINE>super.init(container);<NEW_LINE>container.getService(ManagerWebService.class).addApiSingleton(new AssetDatapointResourceImpl(container.getService(TimerService.class), container.getService(ManagerIdentityService.class), container.getService(<MASK><NEW_LIN...
AssetStorageService.class), this));
1,208,919
public void path(String pattern) {<NEW_LINE>if (currentRouterFunctionDatas != null) {<NEW_LINE>if (!nestedPaths.isEmpty()) {<NEW_LINE>List<String> nestedPathsList = this.nestedPaths.values().stream().flatMap(List::stream).<MASK><NEW_LINE>if (!orPaths.isEmpty())<NEW_LINE>orPaths.forEach(nestedOrPath -> createRouterFunct...
collect(Collectors.toList());
444,580
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject(Fields.JVM);<NEW_LINE>builder.field(Fields.PID, pid);<NEW_LINE>builder.field(Fields.VERSION, version);<NEW_LINE>builder.field(Fields.VM_NAME, vmName);<NEW_LINE>builder.field(Fields.VM_VERSION, vmV...
field(Fields.BUNDLED_JDK, bundledJdk);
1,024,421
public boolean visit(MethodInvocation node) {<NEW_LINE>boolean visitChildren = true;<NEW_LINE>if (node != this.root) {<NEW_LINE>IMethodBinding methodBinding = node.resolveMethodBinding();<NEW_LINE>try {<NEW_LINE>if (WebfluxUtils.REQUEST_PREDICATES_TYPE.equals(methodBinding.getDeclaringClass().getBinaryName())) {<NEW_LI...
new WebfluxRouteElement(name, range));
1,479,971
public synchronized void endOptimizedGlobalTransactionBranch(int transactionId, int flags) {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "endOptimizedGlobalTransactionBranch", new Object[] { "" <MASK><NEW_LINE>AbstractTransactionEntry tx = (AbstractTransactionEntry) map.get(transactionId);<NEW_LINE...
+ transactionId, "" + flags });
672,132
void mergeXML(ConnectionFactory cfd) throws InjectionConfigurationException {<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (isTraceOn && tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "mergeXML: name=" + getJndiName() + ", " + cfd);<NEW_LINE>List<Description> descriptionList = cfd.ge...
), "min-pool-size", KEY_MIN_POOL_SIZE, null);
1,650,598
final DeleteGroupResult executeDeleteGroup(DeleteGroupRequest deleteGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,421,125
// end 94578 Security Defect.<NEW_LINE>public static boolean walkPath(File appRoot, String relativePath) throws IOException {<NEW_LINE>// Walk the path from the app root<NEW_LINE>String[] relativePathElements = relativePath.replace(File.separatorChar<MASK><NEW_LINE>File currentPath = new File(appRoot.getCanonicalPath()...
, '/').split("/");
1,828,831
public static QueryMetrics createFromCollection(Collection<QueryMetrics> queryMetricsCollection) {<NEW_LINE>long retrievedDocumentCount = 0;<NEW_LINE>long retrievedDocumentSize = 0;<NEW_LINE>long outputDocumentCount = 0;<NEW_LINE>long outputDocumentSize = 0;<NEW_LINE>long indexHitDocumentCount = 0;<NEW_LINE>Duration to...
documentWriteTime.plus(queryMetrics.documentWriteTime);
29,287
private MBPartnerLocation createPartnerLocation(MBPartner partner, X_I_Project projectImport) {<NEW_LINE>MBPartnerLocation partnerLocation = new MBPartnerLocation(partner);<NEW_LINE>MLocation location = new MLocation(projectImport.getCtx(), 0, projectImport.get_TrxName());<NEW_LINE>location.<MASK><NEW_LINE>location.set...
setAddress1(projectImport.getAddress1());
1,287,234
protected void lowerLoadFieldNode(LoadFieldNode loadField, LoweringTool tool) {<NEW_LINE>assert loadField.getStackKind() != JavaKind.Illegal;<NEW_LINE>StructuredGraph graph = loadField.graph();<NEW_LINE>ResolvedJavaField field = loadField.field();<NEW_LINE>ValueNode object = loadField.isStatic() ? staticFieldBase(graph...
field), loadStamp, barrierType));
832,485
private void startSync() {<NEW_LINE>// disables the options when sync has started<NEW_LINE>directionBar.setEnabled(false);<NEW_LINE>optionsBar.setEnabled(false);<NEW_LINE>right_arrow.setEnabled(false);<NEW_LINE>left_arrow.setEnabled(false);<NEW_LINE>List<VirtualFileSyncPair> pairs <MASK><NEW_LINE>ISyncResource[] resour...
= new ArrayList<VirtualFileSyncPair>();
1,308,966
public boolean clear(int index, boolean send) {<NEW_LINE>if (this.slots.containsKey(index)) {<NEW_LINE>Item item = new ItemBlock(Block.get(BlockID.AIR), null, 0);<NEW_LINE>Item old = this.slots.get(index);<NEW_LINE>InventoryHolder holder = this.getHolder();<NEW_LINE>if (holder instanceof Entity) {<NEW_LINE>EntityInvent...
getPluginManager().callEvent(ev);
1,741,023
private void handleQueue(HttpDeleteCommand command, String uri) {<NEW_LINE>// Poll an item from the default queue in 3 seconds<NEW_LINE>// http://127.0.0.1:5701/hazelcast/rest/queues/default/3<NEW_LINE>int indexEnd = uri.indexOf('/', URI_QUEUES.length());<NEW_LINE>command.getExecutionDetails().setObjectType(QUEUE);<NEW...
substring(indexEnd + 1) : null;
851,164
protected static void applySecuritySettings(TLSProtocolsConfiguration configuration) {<NEW_LINE>// Disable insecure TLS parameters and ciphers by default.<NEW_LINE>// Prevent attacks like LOGJAM, LUCKY13, et al.<NEW_LINE>setSystemPropertyIfEmpty("jdk.tls.ephemeralDHKeySize", "2048");<NEW_LINE>setSystemPropertyIfEmpty("...
> tlsProtocols = configuration.getConfiguredTlsProtocols();
1,812,762
public String makeSubquery(APIQueryMessage msg, Class inventoryClass) {<NEW_LINE>List<String> resultQuery = new ArrayList<String>();<NEW_LINE>Class entityClass = QueryUtils.getEntityClassFromInventoryClass(inventoryClass);<NEW_LINE>String primaryKey = QueryUtils.getPrimaryKeyNameFromEntityClass(entityClass);<NEW_LINE>S...
.format("sys.resourceType in (%s)", typeString));
1,240,688
protected void projectXmlSaved() throws IOException {<NEW_LINE>int state = genFilesHelper.getBuildScriptState(GeneratedFilesHelper.BUILD_IMPL_XML_PATH, EjbJarProject.class.getResource("resources/build-impl.xsl"));<NEW_LINE>final Boolean projectPropertiesSave = EjbJarProject.this.projectPropertiesSave.get();<NEW_LINE>if...
.getResource("resources/build.xsl"), false);
164,883
private void findBits(Set<CheerEmoticon> emotes, String text, Map<Integer, Integer> ranges, Map<Integer, MutableAttributeSet> rangesStyle, User user) {<NEW_LINE>for (CheerEmoticon emote : emotes) {<NEW_LINE>if (!emote.matchesUser(user, null)) {<NEW_LINE>// CONTINUE<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>Matcher m = emo...
int start = m.start();
1,194,536
public void customizeRenderer(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) {<NEW_LINE>if (!(value instanceof DefaultMutableTreeNode)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// checkBox may have no border by default, but insets are not null,<NEW_LINE>myCheckbox.s...
setState(ThreeStateCheckBox.State.DONT_CARE);
1,424,274
public double computeGradient(DenseMatrix data, DenseMatrix target, DenseVector cumGrad) {<NEW_LINE>List<DenseMatrix> outputs = forward(data, true);<NEW_LINE>int currentBatchSize = data.numRows();<NEW_LINE>if (deltas == null || deltas.get(0).numRows() != currentBatchSize) {<NEW_LINE>deltas = new ArrayList<>(layers.size...
.get(i - 1));
1,689,530
public static <T> T parseObject(byte[] input, int off, int len, CharsetDecoder charsetDecoder, Type clazz, Feature... features) {<NEW_LINE>charsetDecoder.reset();<NEW_LINE>int scaleLength = (int) (len * (double) charsetDecoder.maxCharsPerByte());<NEW_LINE>char[] chars = <MASK><NEW_LINE>if (chars == null || chars.length...
CHARS_UPDATER.getAndSet(CACHE, null);
412,785
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// authentication with an API key or named user is required to access basemaps and other<NEW_LINE>// location services<NEW_LINE>ArcGISRuntimeEnvironment.setApiKey(B...
MainActivity.MapViewTouchListener(this, mMapView);
920,059
final UpdateFunctionConfigurationResult executeUpdateFunctionConfiguration(UpdateFunctionConfigurationRequest updateFunctionConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateFunctionConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Lambda");
394,371
public void onSubmitImagePostEvent(SubmitImagePostEvent submitImagePostEvent) {<NEW_LINE>isPosting = false;<NEW_LINE>mPostingSnackbar.dismiss();<NEW_LINE>if (submitImagePostEvent.postSuccess) {<NEW_LINE>Intent intent = new Intent(PostImageActivity.this, ViewUserDetailActivity.class);<NEW_LINE>intent.putExtra(ViewUserDe...
.action_send_post_image_activity).setEnabled(true);
1,826,642
private void handleWebSocketFrame(ChannelHandlerContext ctx, WebSocketFrame frame) {<NEW_LINE>if (frame instanceof CloseWebSocketFrame) {<NEW_LINE>CloseWebSocketFrame close = (CloseWebSocketFrame) frame.retain();<NEW_LINE>handshaker.close(ctx.channel(), close);<NEW_LINE>// Pass on to the rest of the channel<NEW_LINE>ct...
().getName()));
770,305
// Private methods ---------------------------------------------------------<NEW_LINE>@CheckForNull<NEW_LINE>private Project preselectedProject(Lookup context, boolean inProject) {<NEW_LINE>Project preselectedProject = Arrays.stream(ActionsUtil.getProjectsFromLookup(context, null)).findFirst().orElse(null);<NEW_LINE>//...
p = FileOwnerQuery.getOwner(dir);
363,432
public static String encodeAtom(byte[] b, int strt, int left) {<NEW_LINE>StringBuilder out = new StringBuilder();<NEW_LINE>if (left == 1) {<NEW_LINE>byte b1 = b[strt];<NEW_LINE>int k = 0;<NEW_LINE>out.append(String.valueOf(pem_array[b1 >>> 2 & 63]));<NEW_LINE>out.append(String.valueOf(pem_array[(b1 << 4 & 48) + (k >>> ...
b6 = b[strt + 2];
990,779
private List<File> determineConfigFiles(File workDir, Map<String, String> envVars) {<NEW_LINE>List<File> <MASK><NEW_LINE>if (envVars.containsKey(ConfigUtils.CONFIG_FILES)) {<NEW_LINE>for (String file : StringUtils.tokenizeToStringArray(envVars.get(ConfigUtils.CONFIG_FILES), ",")) {<NEW_LINE>configFiles.add(toFile(workD...
configFiles = new ArrayList<>();
966,216
public com.amazonaws.services.connectparticipant.model.ValidationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.connectparticipant.model.ValidationException validationException = new com.amazonaws.services.connectparticipant.model.ValidationException(...
int originalDepth = context.getCurrentDepth();
767,648
private boolean validateSupportedFeatures(Expectation expectation, HttpRequest request, ResponseWriter responseWriter) {<NEW_LINE>boolean valid = true;<NEW_LINE><MASK><NEW_LINE>String NOT_SUPPORTED_MESSAGE = " is not supported by MockServer deployed as a WAR due to limitations in the JEE specification; use mockserver-n...
Action action = expectation.getAction();
1,388,826
public ObjectNode toJsonObject() {<NEW_LINE>ObjectNode jsonObject = JsonUtils.newObjectNode();<NEW_LINE>jsonObject.put("schemaName", _schemaName);<NEW_LINE>if (!_dimensionFieldSpecs.isEmpty()) {<NEW_LINE>ArrayNode jsonArray = JsonUtils.newArrayNode();<NEW_LINE>for (DimensionFieldSpec dimensionFieldSpec : _dimensionFiel...
jsonObject.set("complexFieldSpecs", jsonArray);
172,313
protected void unregisterListeners() {<NEW_LINE>if (this instanceof XmppConnectionService.OnConversationUpdate) {<NEW_LINE>this.xmppConnectionService.removeOnConversationListChangedListener((XmppConnectionService.OnConversationUpdate) this);<NEW_LINE>}<NEW_LINE>if (this instanceof XmppConnectionService.OnAccountUpdate)...
((XmppConnectionService.OnAccountUpdate) this);
106,964
static // http://www.six-swiss-exchange.com/swx_messages/online/swx7299e.pdf<NEW_LINE>ImmutableHolidayCalendar generateZurich() {<NEW_LINE>List<LocalDate> holidays = new ArrayList<>(2000);<NEW_LINE>for (int year = 1950; year <= 2099; year++) {<NEW_LINE>// new year<NEW_LINE>holidays.add(date(year, 1, 1));<NEW_LINE>// sa...
(year, 8, 1));
1,841,976
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>final OsmandApplication app = getMyApplication();<NEW_LINE>searchHelper = new WikivoyageSearchHelper(app);<NEW_LINE>final View mainView = inflate(R.layout.fragment_wikivoyage_search_...
setHint(R.string.shared_string_search);
1,839,979
private Executable resolveFactoryMethod(List<Method> executables, Function<Method, List<ResolvableType>> parameterTypesFactory, List<ResolvableType> valueTypes) {<NEW_LINE>List<? extends Executable> matches = executables.stream().filter((executable) -> match(parameterTypesFactory.apply(executable), valueTypes, Fallback...
"Multiple matches with parameters '" + valueTypes + "': " + typeConversionFallbackMatches);
1,718,560
void validate(DigestCalculatorProvider calculatorProvider, byte[] dataDigest) throws ImprintDigestInvalidException, CMSException {<NEW_LINE>byte[] currentDigest = dataDigest;<NEW_LINE>for (int i = 0; i < timeStamps.length; i++) {<NEW_LINE>try {<NEW_LINE>TimeStampToken token = this.getTimeStampToken(timeStamps[i]);<NEW_...
TimeStampTokenInfo info = token.getTimeStampInfo();
94,422
protected SiftPoint createDetection(int x, int y, float positiveIntensity, boolean maximum) {<NEW_LINE>// Estimate the scale and 2D point by fitting 2nd order polynomials<NEW_LINE>// This is different from the original paper<NEW_LINE>float signAdj = maximum ? 1 : -1;<NEW_LINE>float x0 = dogTarget.unsafe_get(x - 1, y) *...
(x0, positiveIntensity, x2));
843,174
public int add(@ParametricNullness E element, int occurrences) {<NEW_LINE>checkNonnegative(occurrences, "occurrences");<NEW_LINE>if (occurrences == 0) {<NEW_LINE>return count(element);<NEW_LINE>}<NEW_LINE>checkArgument<MASK><NEW_LINE>AvlNode<E> root = rootReference.get();<NEW_LINE>if (root == null) {<NEW_LINE>comparato...
(range.contains(element));
947,187
private static ExpressionNode unrollTensorExpression(OrderedTensorType type) {<NEW_LINE>if (type.rank() == 0)<NEW_LINE>return new ConstantNode(DoubleValue.zero);<NEW_LINE>List<ExpressionNode> children = new ArrayList<>();<NEW_LINE>List<ArithmeticOperator> operators = new ArrayList<>();<NEW_LINE>int size = 1;<NEW_LINE>f...
add(0, ArithmeticOperator.MULTIPLY);
1,476,836
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>((Infinity) getApplication()).getAppComponent().inject(this);<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>getTheme().applyStyle(R.style.Theme_Normal, true);<NEW_LINE>getTheme().applyStyle(FontStyle.valueOf(mSharedPreferences.getString(SharedPrefere...
).getResId(), true);
1,100,391
protected void verifyCell(Cell cell, int width, String cellName, JRVerifier verifier) {<NEW_LINE>if (cell == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (cell.getRowSpan() != null && cell.getRowSpan() < 1) {<NEW_LINE>verifier.addBrokenRule("Negative or zero cell row span", cell);<NEW_LINE>}<NEW_LINE>Integer height ...
int avlblHeight = height - topPadding - bottomPadding;
1,086,868
public String readUTF() throws IOException {<NEW_LINE>int utflen = readUnsignedShort();<NEW_LINE>StringBuffer str = new StringBuffer(utflen);<NEW_LINE>byte[<MASK><NEW_LINE>int c, char2, char3;<NEW_LINE>int count = 0;<NEW_LINE>readFully(bytearr, 0, utflen);<NEW_LINE>while (count < utflen) {<NEW_LINE>c = (int) bytearr[co...
] bytearr = new byte[utflen];
1,685,450
private boolean createWindow(long display, long config) {<NEW_LINE>try (XVisualInfo visual = GLX13.glXGetVisualFromFBConfig(display, config)) {<NEW_LINE>if (visual == null) {<NEW_LINE>LOG.log(SEVERE, "glXGetVisualFromFBConfig returned null");<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>GdkWindowAttr attrs = new GdkWindo...
int) visual.visualid());
1,757,764
private Mono<Response<RolloutInner>> cancelWithResponseAsync(String resourceGroupName, String rolloutName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.cli...
error(new IllegalArgumentException("Parameter rolloutName is required and cannot be null."));
575,174
public boolean isStringFieldEqual(int ordinal, int fieldIndex, String testValue) {<NEW_LINE>HollowObjectTypeDataElements currentData;<NEW_LINE>boolean result;<NEW_LINE>do {<NEW_LINE>int numBitsForField;<NEW_LINE>long endByte;<NEW_LINE>long startByte;<NEW_LINE>do {<NEW_LINE>currentData = this.currentDataVolatile;<NEW_LI...
fixedLengthData.getElementValue(currentBitOffset, numBitsForField);
1,156,575
private List<I_M_Inventory> createInventories(final WarehouseId warehouseId, final List<I_M_HU> hus) {<NEW_LINE>final I_M_Warehouse warehouse = warehouseDAO.getById(warehouseId);<NEW_LINE>// Make sure all HUs have ThreadInherited transaction (in order to use caching)<NEW_LINE>InterfaceWrapperHelper.setThreadInheritedTr...
husSource = HUListAllocationSourceDestination.of(hus);
1,484,539
private void showExecutionResult(DBCSession session) {<NEW_LINE>int statementsCount = statistics.getStatementsCount();<NEW_LINE>if (// Many statements<NEW_LINE>// Single non-select statement<NEW_LINE>statementsCount > 1 || (statementsCount == 1 && resultSetNumber == 0) || (resultSetNumber == 0 && (statistics.getRowsUpd...
"", -1, -1);
1,697,263
public void run(RegressionEnvironment env) {<NEW_LINE>// Bean<NEW_LINE>runAssertion(env, "create schema BeanEvent as " + MyLocalBeanEvent.class.getName(), und -> {<NEW_LINE>MyLocalBeanEvent bean = (MyLocalBeanEvent) und;<NEW_LINE>assertEquals(<MASK><NEW_LINE>assertEquals(1, bean.getP2());<NEW_LINE>});<NEW_LINE>// Map<N...
"a", bean.getP1());
1,808,897
public FlatFileItemWriter<T> build() {<NEW_LINE>Assert.isTrue(this.lineAggregator != null || this.delimitedBuilder != null || this.formattedBuilder != null, "A LineAggregator or a DelimitedBuilder or a FormattedBuilder is required");<NEW_LINE>if (this.saveState) {<NEW_LINE>Assert.hasText(this.name, "A name is required ...
this.formattedBuilder == null, "Either a DelimitedLineAggregator or a FormatterLineAggregator should be provided, but not both");
822,889
protected String processActionForSpecialSymbols(String actionStr, int line, RuleBlock currentRule, ActionTransInfo tInfo) {<NEW_LINE>if (actionStr == null || actionStr.length() == 0)<NEW_LINE>return null;<NEW_LINE>// The action trans info tells us (at the moment) whether an<NEW_LINE>// assignment was done to the rule's...
actionStr, currentRule, this, tInfo);
1,026,623
final ListRuleGroupsResult executeListRuleGroups(ListRuleGroupsRequest listRuleGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRuleGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,177,386
public void loadSettings(DBWHandlerConfiguration configuration) {<NEW_LINE>super.loadSettings(configuration);<NEW_LINE>if (CommonUtils.isEmpty(configuration.getStringProperty(SSLHandlerTrustStoreImpl.PROP_SSL_METHOD))) {<NEW_LINE>// Backward compatibility<NEW_LINE>caCertPath.setText(CommonUtils.notEmpty(configuration.g...
getStringProperty(MySQLConstants.PROP_SSL_CLIENT_KEY)));
1,073,318
void initializeTree() {<NEW_LINE>// initilizes the JTree<NEW_LINE>treeModel = createModel();<NEW_LINE>treeModel.addView(this);<NEW_LINE>tree = new ExplorerTree(treeModel);<NEW_LINE>if (GraphicsEnvironment.isHeadless()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>NodeRenderer rend = new NodeRenderer();<NEW_LINE>tree.setCellR...
true).getPreferredSize().height;
1,570,032
private void createClientSubject() {<NEW_LINE>if (clientPrincipal == null)<NEW_LINE>throw new OSecurityAuthenticatorException("OKerberosAuthenticator.createClientSubject() Client Principal cannot be null");<NEW_LINE>if (clientUseTicketCache && clientCCName == null)<NEW_LINE>throw new OSecurityAuthenticatorException("OK...
"ignore", null, null, cfg);
454,081
protected void appendMemberDeclarationContents(CharArrayBuffer buffer) {<NEW_LINE>if (isConstructor()) {<NEW_LINE>buffer.append(getConstructorName()).append(this.fDocument, this.fNameRange[1] + 1, this.fParameterRange[0] - this.fNameRange[1] - 1);<NEW_LINE>} else {<NEW_LINE>buffer.append(getReturnTypeContents());<NEW_L...
- this.fExceptionRange[0]);
1,328,946
public DownlinkQueueMessage unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DownlinkQueueMessage downlinkQueueMessage = new DownlinkQueueMessage();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = con...
String currentParentElement = context.getCurrentParentElement();
810,992
private static final void exportDomain0(Configuration configuration, InformationSchema result, Domain<?> d) {<NEW_LINE>org.jooq.util.xml.jaxb.Domain id = new org.jooq.util.xml.jaxb.Domain();<NEW_LINE>String catalogName = catalogName(d);<NEW_LINE>String schemaName = schemaName(d);<NEW_LINE>String domainName = d.getName(...
.xml.jaxb.CheckConstraint();