idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
22,160
public static DescribeInstanceTypeResponse unmarshall(DescribeInstanceTypeResponse describeInstanceTypeResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeInstanceTypeResponse.setRequestId(_ctx.stringValue("DescribeInstanceTypeResponse.RequestId"));<NEW_LINE>List<InstanceTypeSpec> instanceTypeSpecList <MASK><NEW_LIN...
= new ArrayList<InstanceTypeSpec>();
797,512
private void printExtractBandInterleaved() {<NEW_LINE><MASK><NEW_LINE>String interleavedName = imageType.getInterleavedName();<NEW_LINE>out.print("\tpublic static void extractBand( " + interleavedName + " input, int band, " + singleName + " output ) {\n" + "\t\tfinal int numBands = input.numBands;\n" + "\t\t//CONCURREN...
String singleName = imageType.getSingleBandName();
520,914
protected IStatus run(DBRProgressMonitor monitor) {<NEW_LINE>monitor.beginTask("Collect tables", 1);<NEW_LINE>try {<NEW_LINE>monitor.subTask("Collect tables to dump");<NEW_LINE>for (JDBCTable table : curSchema.getTables(monitor)) {<NEW_LINE>if (table instanceof PostgreTableBase) {<NEW_LINE>objects.add((PostgreTableBase...
.TREE_VIEW : DBIcon.TREE_TABLE));
207,570
private void deploy(String user, String home) {<NEW_LINE>// Does this user have a web application to be deployed?<NEW_LINE>String contextPath = "/~" + user;<NEW_LINE>if (host.findChild(contextPath) != null)<NEW_LINE>return;<NEW_LINE>File app = new File(home, directoryName);<NEW_LINE>if (!app.exists() || !app.isDirector...
(Context) clazz.newInstance();
1,427,024
protected void parseSquareGrid(int index, String[] args) {<NEW_LINE>configTarget.type = CalibrationPatterns.SQUARE_GRID;<NEW_LINE>int numRows = 0, numColumns = 0;<NEW_LINE>double square = 1, space = 1;<NEW_LINE>for (; index < args.length; index++) {<NEW_LINE>String arg = args[index];<NEW_LINE>if (!arg.startsWith("--"))...
throw new RuntimeException("Unknown image option " + flagName);
1,260,396
public void trigger(Set<Module> boot) {<NEW_LINE>// NOI18N<NEW_LINE>ev.log(Events.PERF_START, "ModuleList.trigger");<NEW_LINE>// NOI18N<NEW_LINE>if (triggered)<NEW_LINE>throw new IllegalStateException("Duplicate call to trigger()");<NEW_LINE>Set<Module> maybeEnable = new HashSet<Module>(boot);<NEW_LINE>for (DiskStatus ...
log(Events.START_AUTO_RESTORE, maybeEnable);
955,339
public static DescribeOssCallbackSettingResponse unmarshall(DescribeOssCallbackSettingResponse describeOssCallbackSettingResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeOssCallbackSettingResponse.setRequestId(_ctx.stringValue("DescribeOssCallbackSettingResponse.RequestId"));<NEW_LINE>describeOssCallbackSettingRe...
(_ctx.stringValue("DescribeOssCallbackSettingResponse.CallbackSeed"));
967,177
public static // TODO support formats of SIMULATOR and DFID<NEW_LINE>StateSpaceInformationItem parse(String outputMessage) {<NEW_LINE>final String OB = "(";<NEW_LINE>final String AT = ") at ";<NEW_LINE>final String COLON = ": ";<NEW_LINE>final String GENERATED = " states generated (";<NEW_LINE>final String SPM = " s/mi...
, outputMessage.indexOf(LEFT) };
442,814
private List<LayerDeclaration> createDeclarations(AmidstSettings settings, List<Integer> enabledLayers) {<NEW_LINE>LayerDeclaration[] declarations = new LayerDeclaration[LayerIds.NUMBER_OF_LAYERS];<NEW_LINE>// @formatter:off<NEW_LINE>declare(settings, declarations, enabledLayers, LayerIds.ALPHA, null, false, Setting.cr...
OVERWORLD, false, settings.showMineshafts);
995,126
private DeployAppDOExample buildExample(DeployAppQueryCondition condition) {<NEW_LINE>DeployAppDOExample example = new DeployAppDOExample();<NEW_LINE>DeployAppDOExample.Criteria criteria = example.createCriteria();<NEW_LINE>if (StringUtils.isNotBlank(condition.getAppId())) {<NEW_LINE>criteria.andAppIdEqualTo(condition....
andDeployProcessIdEqualTo(condition.getDeployProcessId());
659,119
public static boolean isSameCostDimension(MAcctSchema as, MTransaction trxFrom, MTransaction trxTo) {<NEW_LINE>if (trxFrom.getM_Product_ID() != trxTo.getM_Product_ID()) {<NEW_LINE>throw new AdempiereException("Same product is needed - " + trxFrom + ", " + trxTo);<NEW_LINE>}<NEW_LINE>MProduct product = MProduct.get(trxF...
int ASI_ID = trxFrom.getM_AttributeSetInstance_ID();
123,239
public void apply() {<NEW_LINE>WasmFunction traceFunction = new WasmFunction("traceMemoryAccess");<NEW_LINE>traceFunction.setImportModule("debug");<NEW_LINE>traceFunction.setImportName("traceMemoryAccess");<NEW_LINE>traceFunction.getParameters().add(WasmType.INT32);<NEW_LINE>traceFunction.getParameters().add(WasmType.I...
int[] positionHolder = { 0 };
1,409,131
public TimerTask scheduleMdlDeadlockDetectionTask(TransactionExecutor te, int intervalInMs, int mdlWaitTimeoutInSec) {<NEW_LINE>final MdlDeadlockDetectionTask detectTask = new MdlDeadlockDetectionTask(schema, te, mdlWaitTimeoutInSec);<NEW_LINE>final ScheduleAsyncTask task = ScheduleAsyncTask.build(detectTask);<NEW_LINE...
submit(schema, null, task);
1,834,032
public void actionPerformed(AnActionEvent e) {<NEW_LINE>final ArrangementMatchingRulesControl control = getRulesControl(e);<NEW_LINE>if (control == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int editing = control.getEditingRow() - 1;<NEW_LINE>control.runOperationIgnoreSelectionChange(new Runnable() {<NEW_LINE><...
ListSelectionModel selectionModel = control.getSelectionModel();
798,061
protected final ToolTipSupport openTooltipView(String expression, Object var) {<NEW_LINE>ToolTipView toolTipView = ToolTipView.createToolTipView(expression, var);<NEW_LINE>JEditorPane currentEditor = EditorContextDispatcher<MASK><NEW_LINE>EditorUI eui = Utilities.getEditorUI(currentEditor);<NEW_LINE>if (eui != null) {<...
.getDefault().getMostRecentEditor();
1,513,146
void executePutServiceIdentity(ResourceContext ctx, String domainName, String serviceName, ServiceIdentity service, String auditRef, String caller) {<NEW_LINE>// our exception handling code does the check for retry count<NEW_LINE>// and throws the exception it had received when the retry<NEW_LINE>// count reaches 0<NEW...
con, domainName, serviceName, false);
447,065
private void zoomSecondary() {<NEW_LINE>final int tabIndex = centerTabbedPane.getSelectedIndex();<NEW_LINE>final IInvoiceHistoryTabHandler ihTabHandler = ihCtx.getInvoiceHistoryTabHandler();<NEW_LINE>final Integer tableId;<NEW_LINE>final Integer recordId;<NEW_LINE>if (tabIndex == ihTabHandler.getTabIndexEffective(TAB_R...
m_modelReceived.getValueAt(selectedRow, 11);
459,630
public void actionPerformed(ActionEvent e) {<NEW_LINE>final String snippetName = (String) ((JComboBox) e.getSource()).getSelectedItem();<NEW_LINE>final String snippet = adempiereBoilerPlate.get(snippetName);<NEW_LINE>if (snippet == null) {<NEW_LINE>// true for the "adempiere.PickSnippet" item<NEW_LINE>return;<NEW_LINE>...
caretOffset, selText.length());
619,475
public PutObjectResult handleRequest(Object input, Context context) {<NEW_LINE>String filename = "java11.tgz";<NEW_LINE>String cmd = "tar -cpzf /tmp/" + filename + " --numeric-owner --ignore-failed-read /var/runtime /var/lang";<NEW_LINE>AmazonS3 s3client = AmazonS3ClientBuilder.standard().withRegion("us-east-1").build(...
.withCannedAcl(CannedAccessControlList.PublicRead));
1,624,848
private Model compileJavaCode(String src) {<NEW_LINE>Model model = null;<NEW_LINE>File tempDir = Files.createTempDir();<NEW_LINE>String randomClassName = "POM" + UUID.randomUUID().toString().replaceAll("-", "");<NEW_LINE>String filePath = tempDir.getAbsolutePath();<NEW_LINE>if (!filePath.endsWith("/")) {<NEW_LINE>fileP...
tempDir.getAbsolutePath() + "/");
1,072,443
public static Instance createWithAdditionalDisk(String project, String zone, String instanceName) throws IOException, InterruptedException, ExecutionException {<NEW_LINE>try (ImagesClient imagesClient = ImagesClient.create()) {<NEW_LINE>// List of public operating system (OS) images: https://cloud.google.com/compute/do...
imagesClient.getFromFamily("debian-cloud", "debian-10");
365,999
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {<NEW_LINE>AquaEditorTabCellRenderer ren = (AquaEditorTabCellRenderer) c;<NEW_LINE>Color borderColor = UIManager.getColor("NbTabControl.borderColor");<NEW_LINE>// top<NEW_LINE>g.setColor(borderColor);<NEW_LINE>drawLine(g, x, y, width ...
width, y + height - 1);
359,052
public void handle(OnlineUser user, JSONObject message) throws IOException {<NEW_LINE>if (message.get("t").equals("userInfo")) {<NEW_LINE>LogManager.LOGGER.fine("(WS) User info request from " + user.<MASK><NEW_LINE>JSONObject json = new JSONObject();<NEW_LINE>if (user.getUser().isGuest()) {<NEW_LINE>json.put("worldX", ...
getUser().getUsername());
1,815,535
public String next() {<NEW_LINE>Entry<Key, Value> next = getScannerIterator().next();<NEW_LINE>Key key = next.getKey();<NEW_LINE>Mutation m = new <MASK><NEW_LINE>String entryStr = formatEntry(next, isDoTimestamps());<NEW_LINE>boolean delete = force;<NEW_LINE>String line;<NEW_LINE>if (!force) {<NEW_LINE>try {<NEW_LINE>s...
Mutation(key.getRow());
1,694,279
private void buildLabels() {<NEW_LINE>removeAll();<NEW_LINE>setLayout(null);<NEW_LINE>Container parent = getParent();<NEW_LINE>MemoryBlock[] blocks = map.getBlocks();<NEW_LINE>if (blocks == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (MemoryBlock block : blocks) {<NEW_LINE>JLabel label = new <MASK><NEW_LINE>label....
GDLabel(block.getName());
960,511
private CompoundKey parseCompoundKey(final ResourceModel resource, final ServerResourceContext context, final String pathSegment) {<NEW_LINE>CompoundKey compoundKey;<NEW_LINE>try {<NEW_LINE>compoundKey = ArgumentUtils.parseCompoundKey(pathSegment, resource.getKeys(), context.getRestliProtocolVersion(), _restLiConfig.sh...
, compoundKey.getPart(simpleKeyName));
792,426
public InitiateDeviceClaimResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InitiateDeviceClaimResult initiateDeviceClaimResult = new InitiateDeviceClaimResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()...
class).unmarshall(context));
602,646
public boolean load(String date, Collection<Integer> hashs, int serverId) {<NEW_LINE>if (hashs == null || hashs.size() == 0)<NEW_LINE>return false;<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("date", date);<NEW_LINE>param.put("type", type);<NEW_LINE>ListValue hashLv = param.newList("hash");<NEW_LINE>Iter...
int key = itr.next();
695,943
public Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String hostGroupName) {<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 (resourceGroupNa...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
431,126
// methods that translate to operations /////////////////////////////////////<NEW_LINE>@Override<NEW_LINE>public void signal(String signalName, Object signalData) {<NEW_LINE>ensureActivityInitialized();<NEW_LINE>SignallableActivityBehavior activityBehavior = (SignallableActivityBehavior) activity.getActivityBehavior();...
signal(this, signalName, signalData);
1,397,182
public Event disconnectEvent(Event event, User user, Date startDate, Date endDate) throws DotDataException, DotSecurityException {<NEW_LINE>Event newEvent = null;<NEW_LINE>if (event != null && event.isRecurrent()) {<NEW_LINE>Contentlet newCont = contentletAPI.copyContentlet(event, user, true);<NEW_LINE><MASK><NEW_LINE>...
newEvent = eventFactory.convertToEvent(newCont);
1,442,006
private static ConcurrentMap<File, String> buildFileToImportPathMap(Project project, BlazeProjectData projectData) {<NEW_LINE>TargetMap targetMap = projectData.getTargetMap();<NEW_LINE>ConcurrentMap<File, String> map = new ConcurrentHashMap<>();<NEW_LINE>ImmutableMultimap<Label, File> targetToFile = BlazeGoPackage.getT...
getGoIdeInfo().getImportPath());
911,771
// concerned about this rule as the occupancy here is at 26 but I have a test at 31 and<NEW_LINE>public void concurrentModeFailureReference(GCLogTrace trace, String line) {<NEW_LINE>GCLogTrace memoryPoolSummary = POOL_OCCUPANCY_HEAP_OCCUPANCY_BLOCK.parse(line);<NEW_LINE>MemoryPoolSummary heap = getTotalOccupancyBeforeA...
parNewTenured = parNewHeap.minus(youngMemoryPoolSummaryForwardReference);
587,980
public void fullRedraw() {<NEW_LINE>setupCanvas();<NEW_LINE>final StyleLibrary style = context.getStyleLibrary();<NEW_LINE>int projdim = BitsUtil.cardinality(proj.getVisibleDimensions2D());<NEW_LINE>ColorLibrary colors = style.getColorSet(StyleLibrary.PLOT);<NEW_LINE>p = getLPNormP(tree);<NEW_LINE>if (tree != null) {<N...
SVGConstants.CSS_STROKE_LINECAP_PROPERTY, SVGConstants.CSS_ROUND_VALUE);
443,393
private void downloadAndReadItemFiles(@NonNull Map<RemoteFile, SettingsItemReader<? extends SettingsItem>> remoteFilesForRead, @NonNull Map<File, RemoteFile> remoteFilesForDownload) throws IOException {<NEW_LINE>OsmandApplication app = backupHelper.getApp();<NEW_LINE>List<FileDownloadTask> fileDownloadTasks = new Array...
File tempFile = entry.getKey();
748,007
// For supporting devices with API version < 18<NEW_LINE>private int writeSupportAPI(byte[] src, int timeoutMillis) throws IOException {<NEW_LINE>int written = 0;<NEW_LINE>while (written < src.length) {<NEW_LINE>final int writeLength;<NEW_LINE>final int amtWritten;<NEW_LINE>// synchronized (mWriteBufferLock) {<NEW_LINE...
written + " length=" + src.length);
240,531
private // Returns true if save operation worked, else false.<NEW_LINE>boolean saveFile(EditPane editPane) {<NEW_LINE>if (editPane != null) {<NEW_LINE>if (editPane.isNew()) {<NEW_LINE>File theFile = saveAsFile(editPane);<NEW_LINE>if (theFile != null) {<NEW_LINE>editPane.<MASK><NEW_LINE>}<NEW_LINE>return (theFile != nul...
setPathname(theFile.getPath());
1,717,883
private void doSimpleMatching() {<NEW_LINE>for (int i = 0; i < equalElements.size(); i++) {<NEW_LINE>if (!alreadyMatched.get(i)) {<NEW_LINE>List<Integer> equalTo = equalElements.get(i);<NEW_LINE>if (equalTo.size() > 0) {<NEW_LINE>List<<MASK><NEW_LINE>// We have the same set matching as is equivalent, we can remove them...
Integer> equivalentElements = getEquivalentElements(equalTo);
1,654,138
synchronized void removeDomainObject(DomainObjectAdapterDB domainObj) throws LockException {<NEW_LINE>if (getCurrentTransaction() != null) {<NEW_LINE>throw new LockException("domain object has open transaction: " + getCurrentTransaction().getDescription());<NEW_LINE>}<NEW_LINE>if (isLocked()) {<NEW_LINE>throw new LockE...
int count = domainObjects.length - 1;
401,943
public static void main(String[] args) {<NEW_LINE>String host = "localhost";<NEW_LINE>Cluster.Builder builder = Cluster.build();<NEW_LINE>builder.addContactPoint(host);<NEW_LINE>builder.port(8182);<NEW_LINE>builder.serializer(new GryoMessageSerializerV3d0());<NEW_LINE>Cluster cluster = builder.create();<NEW_LINE>GraphT...
.drop().iterate();
151,244
public void run(RegressionEnvironment env) {<NEW_LINE>EPCompilerSPI compiler = <MASK><NEW_LINE>EPCompilerSPIExpression expressionCompiler = null;<NEW_LINE>try {<NEW_LINE>expressionCompiler = compiler.expressionCompiler(new Configuration());<NEW_LINE>} catch (EPCompileException e) {<NEW_LINE>fail(e.getMessage());<NEW_LI...
(EPCompilerSPI) env.getCompiler();
121,590
public void buildMenu(Menu menuBrowse) {<NEW_LINE>final MenuItem itemBrowsePublic = new MenuItem(menuBrowse, SWT.PUSH);<NEW_LINE>itemBrowsePublic.setText(MessageText.getString("label.public") + "...");<NEW_LINE>itemBrowsePublic.addListener(SWT.Selection, new ListenerDMTask(dms, false) {<NEW_LINE><NEW_LINE>@Override<NEW...
MenuItem(menuBrowse, SWT.PUSH);
871,739
public static DescribeDrdsRdsInstancesResponse unmarshall(DescribeDrdsRdsInstancesResponse describeDrdsRdsInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDrdsRdsInstancesResponse.setRequestId(_ctx.stringValue("DescribeDrdsRdsInstancesResponse.RequestId"));<NEW_LINE>describeDrdsRdsInstancesResponse.setSu...
(_ctx.stringValue("DescribeDrdsRdsInstancesResponse.PageSize"));
762,322
public boolean createTable(PropertyBusinessObject cmp) throws IOException {<NEW_LINE>String tableName = getTableName(cmp);<NEW_LINE>Cursor cr = null;<NEW_LINE>boolean has = false;<NEW_LINE>try {<NEW_LINE>cr = executeQuery("SELECT * FROM sqlite_master WHERE type='table' AND name='" + tableName + "'");<NEW_LINE>has = cr....
StringBuilder createStatement = new StringBuilder("CREATE TABLE ");
1,839,780
/*<NEW_LINE>* @see<NEW_LINE>* com.ibm.wsspi.channelfw.ChannelFramework#startChain(com.ibm.websphere.channelfw<NEW_LINE>* .ChainData)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public synchronized void startChain(ChainData chain) throws ChannelException, ChainException {<NEW_LINE>String chainName = (null != chain) ? chain....
Tr.exit(tc, "startChain");
922,819
protected void createNatureSelector(Composite parent) {<NEW_LINE>// grab nature label+id list<NEW_LINE>SortedMap<String, String> natureMap = getNatureMap();<NEW_LINE>// combo label<NEW_LINE>Label label = new Label(parent, SWT.LEFT);<NEW_LINE>label.setFont(parent.getFont());<NEW_LINE>label.setText(Messages.ContentAssist...
add(entry.getKey());
743,920
private void configureTaskConventionMapping(Configuration configuration, final Pmd task) {<NEW_LINE>ConventionMapping taskMapping = task.getConventionMapping();<NEW_LINE>taskMapping.map("pmdClasspath", () -> configuration);<NEW_LINE>taskMapping.map("ruleSets", () -> extension.getRuleSets());<NEW_LINE>taskMapping.map("r...
) -> extension.getRuleSetFiles());
121,699
public void reduce(final IntWritable key, final Iterator<Text> values, final OutputCollector<IntWritable, Text> output, final Reporter reporter) throws IOException {<NEW_LINE>ArrayList<VectorElem<Double>> self_vector = null;<NEW_LINE>int i;<NEW_LINE>double[] out_vals = new double[block_width];<NEW_LINE>for (i = 0; i < ...
(1), Double.class);
437,328
public ImmutableAttributeSet generate(@NonNull final ComponentGeneratorContext context) {<NEW_LINE>final int qty = context.getQty();<NEW_LINE>Check.errorIf(qty < 1 || qty > supportedAttributes.size(), "Qty of Mac Addresses should be between 1 and {} but it was {}", supportedAttributes.size(), qty);<NEW_LINE>//<NEW_LINE...
Builder result = ImmutableAttributeSet.builder();
1,474,243
protected static void collectLibraries(ProjectData project, Program cur, Set<Program> col, TaskMonitor monitor) throws CancelledException {<NEW_LINE>if (!col.add(cur)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ExternalManager externs = cur.getExternalManager();<NEW_LINE>for (String extName : externs.getExternalLibraryName...
libFile = project.getFile(libPath);
730,723
public static VariantContext trimAlleles(final VariantContext inputVC, final boolean trimForward, final boolean trimReverse) {<NEW_LINE>Utils.nonNull(inputVC);<NEW_LINE>if (inputVC.getNAlleles() <= 1 || inputVC.getAlleles().stream().anyMatch(a -> a.length() == 1 && !a.equals(Allele.SPAN_DEL))) {<NEW_LINE>return inputVC...
boolean restoreOneBaseAtEnd = emptyAllele && startTrim == 0;
734,703
private final int compareOtherInterval(final FcnRcdValue fcn) {<NEW_LINE>int result;<NEW_LINE>if (fcn.intv != null) {<NEW_LINE>for (int i = 0; i < this.domain.length; i++) {<NEW_LINE>final Value dElem = this.domain[i];<NEW_LINE>if (!(dElem instanceof IntValue)) {<NEW_LINE>Assert.fail("Attempted to compare integer with ...
(fcn.domain[i]);
1,677,978
private void performSwapItems(RecyclerView rv, @Nullable RecyclerView.ViewHolder draggingItemHolder, @NonNull RecyclerView.ViewHolder swapTargetHolder, Rect swapTargetMargins, int fromPosition, int toPosition) {<NEW_LINE>if (LOCAL_LOGD) {<NEW_LINE>Log.d(TAG, "item swap (from: " + fromPosition + ", to: " + toPosition + ...
layoutType = CustomRecyclerViewUtils.getLayoutType(mRecyclerView);
401,221
public boolean runInThread(Runnable runnable) {<NEW_LINE>if (runnable == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>synchronized (nextRunnableLock) {<NEW_LINE>handoffPending = true;<NEW_LINE>// Wait until a worker thread is available<NEW_LINE>while ((availWorkers.size() < 1) && !isShutdown) {<NEW_LINE>try {<NEW...
(WorkerThread) availWorkers.removeFirst();
523,769
public static void addArchiveRefsToProject(Project project, List<String> jars) {<NEW_LINE>try {<NEW_LINE>// Obtain the path to the project's library directory<NEW_LINE>FileObject projectLibDir = ManagerUtil.getProjectLibraryDirectory(project);<NEW_LINE>FileObject wsClientsSubDir = projectLibDir.getFileObject(WEBSERVICE...
= new ArrayList<URL>();
1,376,940
public void visit(DirectedGraph g) {<NEW_LINE>graph = g;<NEW_LINE>prime = new DirectedGraph();<NEW_LINE>prime.nodes.add(graphLeft = new Node(null));<NEW_LINE>prime.nodes.add(graphRight = new Node(null));<NEW_LINE>if (g.tensorStrength != 0)<NEW_LINE>prime.edges.add(new Edge(graphLeft, graphRight, g.tensorSize, g.tensorS...
.size.width = graphRight.rank;
728,946
final PutQueryDefinitionResult executePutQueryDefinition(PutQueryDefinitionRequest putQueryDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putQueryDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
(super.beforeMarshalling(putQueryDefinitionRequest));
1,591,463
protected void configure() {<NEW_LINE>bindFlags(context);<NEW_LINE>MapBinder<String, AuthServiceExtension> mapBinder = MapBinder.newMapBinder(binder(), String.class, AuthServiceExtension.class);<NEW_LINE>authServiceExtensions.forEach(authExtension -> mapBinder.addBinding(authExtension.getServiceId()).toInstance(authExt...
).to(PortabilityAuthServiceProviderRegistry.class);
679,693
public void switchProvider(final String newProviderId) throws MessagingException {<NEW_LINE>if (newProviderId.equals(mStorageProviderId)) {<NEW_LINE>Timber.v("LockableDatabase: Ignoring provider switch request as they are equal: %s", newProviderId);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Timber.v("LockableDatabase: Switc...
.getDatabase(uUid, newProviderId));
1,191,657
public Result load(Request request, int networkPolicy) throws IOException {<NEW_LINE>ContentResolver contentResolver = context.getContentResolver();<NEW_LINE>int exifOrientation = getExifOrientation(contentResolver, request.uri);<NEW_LINE>String mimeType = contentResolver.getType(request.uri);<NEW_LINE>boolean isVideo ...
picassoKind.height, options, request);
617,838
public void init(String prefix, Properties props) {<NEW_LINE>String xmlPath = props.getProperty(prefix + "xml", "edu/stanford/nlp/models/sutime/jollyday/Holidays_sutime.xml");<NEW_LINE>String xmlPathType = props.getProperty(prefix + "pathtype", "classpath");<NEW_LINE>varPrefix = props.getProperty(prefix + "prefix", var...
holidayManager = HolidayManager.getInstance(ump);
1,736,679
public OperationResult execute(final MessageFrame frame, final EVM evm) {<NEW_LINE>final long memOffset = clampedToLong(frame.popStackItem());<NEW_LINE>final long sourceOffset = clampedToLong(frame.popStackItem());<NEW_LINE>final long numBytes = clampedToLong(frame.popStackItem());<NEW_LINE>final Gas cost = gasCalculat...
Code code = frame.getCode();
856,628
private void handleProviderAddedInSeparateThread(ProtocolProviderService provider, boolean isStatusChanged) {<NEW_LINE>// lets check if we have cached recent messages for this provider, and<NEW_LINE>// fire events if found and are newer<NEW_LINE>synchronized (recentMessages) {<NEW_LINE>List<ComparableEvtObj> cachedRece...
getAccountUniqueID(), null, isSMSEnabled);
1,671,663
public Object replaceChild(final Object newChildObject, final Object oldChildObject) {<NEW_LINE>Object removedChild = null;<NEW_LINE>if (newChildObject instanceof DocumentFragment) {<NEW_LINE>final DocumentFragment fragment = (DocumentFragment) newChildObject;<NEW_LINE>Node firstNode = null;<NEW_LINE>final Node refChil...
final Node newChild = (Node) newChildObject;
417,451
public // =============<NEW_LINE>void functionScore(OperatorCall<BoostDocumentRuleCQ> queryLambda, ScoreFunctionCall<ScoreFunctionCreator<BoostDocumentRuleCQ>> functionsLambda, final ConditionOptionCall<FunctionScoreQueryBuilder> opLambda) {<NEW_LINE>BoostDocumentRuleCQ cq = new BoostDocumentRuleCQ();<NEW_LINE>queryLam...
cq.getQuery(), list);
1,492,467
private void startComponent(String featureName, ClassLoader cl, String[] components) {<NEW_LINE>// int index = 0;<NEW_LINE>for (String component : components) {<NEW_LINE>try {<NEW_LINE>// load component class<NEW_LINE>Class<?> componentClass = cl.loadClass(component);<NEW_LINE>// check if component class extends AgentF...
.getSimpleName(), featureName });
1,063,519
protected void processAbstractionAtReturn(MethodSummaries flows, AccessPath apAtReturn, SootMethod m, FlowSource source, Stmt stmt, AccessPath sourceAP, boolean isAlias, boolean isInCallee) {<NEW_LINE>// Was this the value returned by the method?<NEW_LINE>if (stmt instanceof ReturnStmt) {<NEW_LINE>ReturnStmt retStmt = ...
source, sink, isAlias, flows);
1,037,882
final ListThemeAliasesResult executeListThemeAliases(ListThemeAliasesRequest listThemeAliasesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listThemeAliasesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,316,699
public boolean onLongClick(View v) {<NEW_LINE>String link;<NEW_LINE>boolean displayPic = !picUrl.equals("");<NEW_LINE>if (displayPic) {<NEW_LINE>link = picUrl;<NEW_LINE>} else {<NEW_LINE>link = otherUrl.split(" ")[0];<NEW_LINE>}<NEW_LINE>Log.v("tweet_page", "clicked");<NEW_LINE>Intent viewTweet = new Intent(context, T...
viewTweet.putExtra("picture", displayPic);
1,315,953
public Boolean delete(DeleteTransformRequest request, String operator) {<NEW_LINE>LOGGER.info("begin to logic delete transform for request={}", request);<NEW_LINE><MASK><NEW_LINE>String groupId = request.getInlongGroupId();<NEW_LINE>String streamId = request.getInlongStreamId();<NEW_LINE>Preconditions.checkNotNull(grou...
Preconditions.checkNotNull(request, "delete request of transform cannot be null");
1,842,097
// invalidateIt<NEW_LINE>@Override<NEW_LINE>public String prepareIt() {<NEW_LINE><MASK><NEW_LINE>m_processMsg = ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_BEFORE_PREPARE);<NEW_LINE>if (m_processMsg != null)<NEW_LINE>return IDocument.STATUS_Invalid;<NEW_LINE>// Std Period open? - AP (Reimbur...
log.info(toString());
309,122
public List<ValidationEvent> unionShape(UnionShape shape) {<NEW_LINE>return value.asObjectNode().map(object -> {<NEW_LINE>List<ValidationEvent> events = applyPlugins(shape);<NEW_LINE>if (object.size() > 1) {<NEW_LINE>events.add(event("union values can contain a value for only a single member"));<NEW_LINE>} else {<NEW_L...
String entryKey = entry.getKey();
1,716,009
public static String mavenToPath(String maven) {<NEW_LINE>String type;<NEW_LINE>if (maven.matches(".*@\\w+$")) {<NEW_LINE>int i = maven.lastIndexOf('@');<NEW_LINE>type = maven.substring(i + 1);<NEW_LINE>maven = maven.substring(0, i);<NEW_LINE>} else {<NEW_LINE>type = "jar";<NEW_LINE>}<NEW_LINE>String[] arr = maven.spli...
throw new RuntimeException("Wrong maven coordinate " + maven);
182,689
public okhttp3.Call connectPostNamespacedServiceProxyCall(String name, String namespace, String path, 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}/services/{name}/proxy...
.parameterToPair("path", path));
442,307
protected void initUI() {<NEW_LINE>var pickupWood = getUIFactoryService().newButton(getip("wood").asString("Wood: %d"));<NEW_LINE>pickupWood.setStyle("-fx-background-color: saddlebrown");<NEW_LINE>var pickupStone = getUIFactoryService().newButton(getip("stone").asString("Stone: %d"));<NEW_LINE>pickupStone.setStyle("-fx...
"crystal").asString("Crystal: %d"));
236,843
public void persistProfileForPublicUser(Principal principal, Object form, BindingResult bindingResult, TicketReservationAdditionalInfo reservationAdditionalInfo, Map<String, AdditionalInfoWithLabel> userAdditionalData) {<NEW_LINE>if (principal == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (!binding...
extensionManager.handleUserProfileValidation(form, bindingResult);
760,091
public static // | DeferStatement<NEW_LINE>boolean Statement(PsiBuilder b, int l) {<NEW_LINE>if (!recursion_guard_(b, l, "Statement"))<NEW_LINE>return false;<NEW_LINE>boolean r;<NEW_LINE>Marker m = enter_section_(b, l, _COLLAPSE_, STATEMENT, "<statement>");<NEW_LINE>r = ConstDeclaration(b, l + 1);<NEW_LINE>if (!r)<NEW_...
DeferStatement(b, l + 1);
1,582,892
public void serialize(Json json) throws IOException {<NEW_LINE>JsonSerializationContext serializationContext = json.getSerializationContext();<NEW_LINE>try {<NEW_LINE>if (serializationContext.isSerializing()) {<NEW_LINE>json.writeMapBegin();<NEW_LINE>json.writeMapEntry(Json.ApplicationKey.DESCRIPTOR, descriptor);<NEW_L...
Json.ApplicationKey.ATTRIBUTES, attrDefs);
1,211,714
public void parseRequest(BackchannelAuthenticationEndpointRequest request) {<NEW_LINE>request.scope = replaceIfNotNull(request.scope, getParameter(OIDCLoginProtocol.SCOPE_PARAM));<NEW_LINE>request.clientNotificationToken = replaceIfNotNull(request.clientNotificationToken, getParameter(CibaGrantType.CLIENT_NOTIFICATION_...
, getParameter(OIDCLoginProtocol.PROMPT_PARAM));
1,143,091
static void writeFile(ByteArrayPayload payload, String path) throws IOException {<NEW_LINE>File file = new File(path);<NEW_LINE>if (file.exists() && !file.delete()) {<NEW_LINE>throw new IOException("Cannot overwrite " + path + ". Perhaps the file is locked?");<NEW_LINE>}<NEW_LINE>// create data stream<NEW_LINE>InputStr...
] data = new byte[len];
564,780
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>ArrayList<ClickableAdapter.ClickableItem> <MASK><NEW_LINE>clickableItems.add(new ClickableAdapter.ClickableItem(getString(R.string.intent_1), new ItemClickListener(...
clickableItems = new ArrayList<>();
481,421
private void vLineBoundsChanged(Set<Point> oldSelection, Set<Point> newSelection) {<NEW_LINE>SortedSet<Integer> selectionBounds = new TreeSet();<NEW_LINE>for (Point p : oldSelection) selectionBounds.add(p.x);<NEW_LINE>int selections = selectionBounds.size();<NEW_LINE>if (selections == 1) {<NEW_LINE>repaint(selectionBou...
selectionExtent * 2, getHeight());
1,414,436
private // private methods<NEW_LINE>void updateMethodList() {<NEW_LINE>RADComponent sel = getSelectedComponent();<NEW_LINE>if (sel == null) {<NEW_LINE>methodList.setListData(new Object[0]);<NEW_LINE>methodList.revalidate();<NEW_LINE>methodList.repaint();<NEW_LINE>} else {<NEW_LINE>MethodDescriptor[] descs;<NEW_LINE>des...
.getBeanInfo().getMethodDescriptors();
72,794
private void createNonWin() throws IOException, InterruptedException {<NEW_LINE>final MacroMap env = info.getEnvironment().clone();<NEW_LINE>if (info.isUnbuffer()) {<NEW_LINE>UnbufferSupport.initUnbuffer(info.getExecutionEnvironment(), env);<NEW_LINE>}<NEW_LINE>// NOI18N<NEW_LINE>final ProcessBuilder pb = new ProcessBu...
, wd.getAbsolutePath()));
521,171
final CancelDetectMitigationActionsTaskResult executeCancelDetectMitigationActionsTask(CancelDetectMitigationActionsTaskRequest cancelDetectMitigationActionsTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelDetectMitigationActionsTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
329,028
public void show() {<NEW_LINE>wizard.setTitle(MessageText.getString("importTorrentWizard.importfile.title"));<NEW_LINE>Composite rootPanel = wizard.getPanel();<NEW_LINE>GridLayout layout = new GridLayout();<NEW_LINE>layout.numColumns = 1;<NEW_LINE>rootPanel.setLayout(layout);<NEW_LINE>Composite panel = new Composite(ro...
(MessageText.getString("importTorrentWizard.importfile.invalidPath"));
1,249,620
public String top10UnstableDomainByAllZkCluster() throws SaturnJobConsoleException {<NEW_LINE>List<DomainStatistics> domainStatisticsList = new ArrayList<>();<NEW_LINE>Collection<ZkCluster<MASK><NEW_LINE>for (ZkCluster zkCluster : zkClusterList) {<NEW_LINE>SaturnStatistics saturnStatistics = top10UnstableDomain(zkClust...
> zkClusterList = registryCenterService.getOnlineZkClusterList();
533,081
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>output.writeInt32(1, replicas_);<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW_LINE>output.writeInt32(2, fullyLabeledReplicas_);<NE...
output.writeInt64(3, observedGeneration_);
987,529
public String load(String fpJarOrFolder, boolean scriptOnly) {<NEW_LINE>// ##<NEW_LINE>// # loads a Sikuli extension (.jar) from<NEW_LINE>// # 1. user's sikuli data path<NEW_LINE>// # 2. bundle path<NEW_LINE>// #<NEW_LINE>// def load(jar):<NEW_LINE>// def _load(abspath):<NEW_LINE>// if os.path.exists(abspath):<NEW_LI...
File(runTime.fSikulixExtensions, fpJarOrFolder);
1,688,488
private static int Sort(int[] array, int lo, int hi, int numberOfSwaps) {<NEW_LINE>if (lo == hi) {<NEW_LINE>return numberOfSwaps;<NEW_LINE>}<NEW_LINE>int high = hi;<NEW_LINE>int low = lo;<NEW_LINE>int mid <MASK><NEW_LINE>while (lo < hi) {<NEW_LINE>if (array[lo] > array[hi]) {<NEW_LINE>Swap(array, lo, hi);<NEW_LINE>numb...
= (hi - lo) / 2;
391,574
private void writeRevisionsFeed(HttpServletRequest request, HttpServletResponse response, ServiceMap serviceMap) throws IOException, FeedException, ServiceException, PublicInterfaceNotFoundException {<NEW_LINE>long poid = Long.parseLong(request.getParameter("poid"));<NEW_LINE>SProject sProject = serviceMap.getServiceIn...
= new ArrayList<SyndEntry>();
557,883
// A utility for plugins to write value to BlockBuilder, while performing implicit casts between long/double types.<NEW_LINE>public BytecodeExpression writeValueWithCast(BytecodeExpression blockBuilder, BytecodeExpression value) {<NEW_LINE>if (javaType == boolean.class) {<NEW_LINE>return invoke("writeBoolean", void.cla...
.cast(Object.class));
1,836,037
@Override<NEW_LINE>protected Component createLayout(PropertyBuilder propertyBuilder, @Nonnull Disposable uiDisposable) {<NEW_LINE>VerticalLayout rootLayout = VerticalLayout.create();<NEW_LINE>ExternalDiffSettings externalDiffSettings = myExternalDiffSettings.get();<NEW_LINE>CheckBox enableForFiles = CheckBox.create(Dif...
(DiffBundle.message("select.external.merge.program.dialog.title"));
265,566
private void checkFinal(MethodNode method, Iterator<AbstractInsnNode> iter, FieldInsnNode fieldNode) {<NEW_LINE>if (!fieldNode.owner.equals(this.getTarget().getClassRef())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int opcode = fieldNode.getOpcode();<NEW_LINE>if (opcode == Opcodes.GETFIELD || opcode == Opcodes.GETSTATIC) ...
Field shadowField = shadow.getValue();
1,037,466
public void headAction(Node[] args, int length, RuleContext context) {<NEW_LINE>InfGraph inf = context.getGraph();<NEW_LINE>Graph raw = inf.getRawGraph();<NEW_LINE>Graph deductions = inf.getDeductionsGraph();<NEW_LINE>for (int i = 0; i < length; i++) {<NEW_LINE>Node clauseN = getArg(i, args, context);<NEW_LINE>if (Util...
.instantiate((TriplePattern) clause);
1,203,340
public void completeSegmentOperations(String tableNameWithType, SegmentMetadata segmentMetadata, URI finalSegmentLocationURI, File currentSegmentLocation, boolean enableParallelPushProtection, HttpHeaders headers, String zkDownloadURI, boolean moveSegmentToFinalLocation, String crypter, boolean allowRefresh, long segme...
tableNameWithType, Response.Status.GONE);
215,175
public void insertOrUpdateNewTask(String taskId, String url, int status, int progress, String fileName, String savedDir, String headers, boolean showNotification, boolean openFileFromNotification, boolean saveInPublicStorage) {<NEW_LINE>SQLiteDatabase db = dbHelper.getWritableDatabase();<NEW_LINE>ContentValues values =...
TaskContract.TaskEntry.COLUMN_NAME_TASK_ID, taskId);
724,991
public Optional<SimpleLock> lock(@NonNull LockConfiguration lockConfiguration) {<NEW_LINE>Instant now = now();<NEW_LINE>Bson update = combine(set(LOCK_UNTIL, lockConfiguration.getLockAtMostUntil()), set(LOCKED_AT, now), set(LOCKED_BY, hostname));<NEW_LINE>try {<NEW_LINE>// There are three possible situations:<NEW_LINE>...
new MongoLock(lockConfiguration, this));
964,127
public UpdateUserSettingsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateUserSettingsResult updateUserSettingsResult = new UpdateUserSettingsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
int originalDepth = context.getCurrentDepth();
357,675
public ByteBuffer read(long offset, long length) throws IOException {<NEW_LINE>Preconditions.checkState(!mClosed);<NEW_LINE>updateUnderFileSystemInputStream(offset);<NEW_LINE>updateBlockWriter(offset);<NEW_LINE>long bytesToRead = Math.min(length, mBlockMeta.getBlockSize() - offset);<NEW_LINE>if (bytesToRead <= 0) {<NEW...
mBlockWriter.getPosition() >= offset);