idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,042,813
public boolean deleteFieldsProfile(github.tornaco.android.thanos.core.secure.field.Fields f) throws android.os.RemoteException {<NEW_LINE>android.os.Parcel _data = android.os.Parcel.obtain();<NEW_LINE>android.os.Parcel _reply = android.os.Parcel.obtain();<NEW_LINE>boolean _result;<NEW_LINE>try {<NEW_LINE>_data.writeInt...
TRANSACTION_deleteFieldsProfile, _data, _reply, 0);
468,144
final ModifyVpnConnectionOptionsResult executeModifyVpnConnectionOptions(ModifyVpnConnectionOptionsRequest modifyVpnConnectionOptionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyVpnConnectionOptionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,467,391
public static Response decrypt(OSCoreCtxDB db, Response response, int requestSequenceNr) throws OSException {<NEW_LINE>discardEOptions(response);<NEW_LINE>byte[] protectedData = response.getPayload();<NEW_LINE>Encrypt0Message enc = null;<NEW_LINE>Token token = response.getToken();<NEW_LINE>OSCoreCtx ctx = null;<NEW_LIN...
OptionSet eOptions = response.getOptions();
97,883
public int launchWithoutDependencies(CallStack stack, ObjectBuffer atomicSpace, TaskMetaData meta, long batchThreads) {<NEW_LINE>SPIRVLevelZeroModule module = (SPIRVLevelZeroModule) spirvModule;<NEW_LINE>LevelZeroKernel levelZeroKernel = module.getKernel();<NEW_LINE>ZeKernelHandle kernel = levelZeroKernel.getKernelHand...
ThreadBlockDispatcher(groupSizeX, groupSizeY, groupSizeZ);
597,837
protected void buildAnalyticMoveLineQuery(AccountingReport accountingReport) {<NEW_LINE>this.initQuery();<NEW_LINE>this.addParams("self.moveLine.move.companyCurrency = ?%d", accountingReport.getCurrency());<NEW_LINE>if (accountingReport.getJournal() != null) {<NEW_LINE>this.addParams("self.moveLine.move.journal = ?%d",...
"self.analyticJournal = ?%d", accountingReport.getAnalyticJournal());
294,697
public Map<String, ?> convertAccessToken(OAuth2AccessToken token, OAuth2Authentication authentication) {<NEW_LINE>Map<String, Object> response = new HashMap<String, Object>();<NEW_LINE>OAuth2Request clientToken = authentication.getOAuth2Request();<NEW_LINE>if (!authentication.isClientOnly()) {<NEW_LINE>response.putAll(...
(authentication.getUserAuthentication()));
1,461,606
private void pruneInjectedValues(Map<SkyKey, SkyValue> valuesToInject) {<NEW_LINE>for (Iterator<Map.Entry<SkyKey, SkyValue>> it = valuesToInject.entrySet().iterator(); it.hasNext(); ) {<NEW_LINE>Map.Entry<SkyKey, SkyValue> entry = it.next();<NEW_LINE>SkyKey key = entry.getKey();<NEW_LINE>SkyValue newValue = entry.getVa...
entry + ", " + prevEntry, e);
450,444
final DescribeImagesResult executeDescribeImages(DescribeImagesRequest describeImagesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeImagesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,847,004
public State convertToState(RFXComValueSelector valueSelector) throws RFXComException {<NEW_LINE>org.openhab.core.types.State state = UnDefType.UNDEF;<NEW_LINE>if (valueSelector.getItemClass() == NumberItem.class) {<NEW_LINE>if (valueSelector == RFXComValueSelector.SIGNAL_LEVEL) {<NEW_LINE>state = new DecimalType(signa...
" to " + valueSelector.getItemClass());
768,976
public int extractItems(IServerItemEntry entry, int count, @Nonnull IInventoryPanel te) {<NEW_LINE>float availablePower = te.getPowerLevel() + te.getAvailablePower();<NEW_LINE>availablePower -= InvpanelConfig.inventoryPanelExtractCostPerOperation.get();<NEW_LINE>if (availablePower <= 0) {<NEW_LINE>return 0;<NEW_LINE>}<...
entry.extractItems(this, count);
1,509,794
public <A, R> StreamStage<KeyedWindowResult<K, R>> buildStream(@Nonnull AggregateOperation<A, ? extends R> aggrOp) {<NEW_LINE>List<Transform> upstreamTransforms = toList(upstreamStages, s -> s.transform);<NEW_LINE>FunctionAdapter fnAdapter = ADAPT_TO_JET_EVENT;<NEW_LINE>// Casts in this expression are a workaround for ...
>(transform, fnAdapter, pipelineImpl);
1,762,135
private void registerContext(StandardContext context) throws Exception {<NEW_LINE>ObjectName objectName = context.getJmxName();<NEW_LINE>if (objectName == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String name = objectName.getKeyProperty("name");<NEW_LINE>String hostName;<NEW_LINE>String contextName;<NEW_LINE>if (nam...
RequestUtil.urlDecode(contextName, "UTF-8");
783,075
private void calcPageClearance(LayoutContext c) {<NEW_LINE>if (c.isPrint() && getStyle().isCollapseBorders()) {<NEW_LINE>PageBox page = c.getRootLayer().getFirstPage(c, this);<NEW_LINE>if (page != null) {<NEW_LINE>TableRowBox row = getFirstRow();<NEW_LINE>if (row != null) {<NEW_LINE>int spill = 0;<NEW_LINE>for (Iterato...
TableCellBox cell = i.next();
1,065,831
public com.amazonaws.services.ram.model.ResourceShareLimitExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.ram.model.ResourceShareLimitExceededException resourceShareLimitExceededException = new com.amazonaws.services.ram.model.ResourceShareLimi...
JsonToken token = context.getCurrentToken();
342,543
public String generateFirstPageQuery(int pageSize) {<NEW_LINE>StringBuilder sql = new StringBuilder();<NEW_LINE>sql.append("SELECT * FROM ( ");<NEW_LINE>sql.append("SELECT ").append(StringUtils.hasText(getOrderedQueryAlias()) ? getOrderedQueryAlias() + ".*, " : "*, ");<NEW_LINE>sql.append("ROW_NUMBER() OVER (").append(...
sql.append(getOverSubstituteClauseStart());
796,326
public DataFetcher<Relay.ResolvedGlobalId> id() {<NEW_LINE>return environment -> {<NEW_LINE>PlaceAtDistance placeAtDistance = getSource(environment);<NEW_LINE>Object place = placeAtDistance.place;<NEW_LINE>TypeResolver typeResolver = new LegacyGraphQLPlaceInterfaceTypeResolver();<NEW_LINE>GraphQLInterfaceType placeInte...
, environment.getContext()));
1,002,929
public void registerMap() {<NEW_LINE>// Transaction id<NEW_LINE>map(Type.VAR_INT);<NEW_LINE>// Start<NEW_LINE>map(Type.VAR_INT);<NEW_LINE>// Length<NEW_LINE>map(Type.VAR_INT);<NEW_LINE>// Count<NEW_LINE>map(Type.VAR_INT);<NEW_LINE>handler(new PacketHandler() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void handle(Pa...
wrapper.passthrough(Type.STRING);
41,101
public boolean runExclusiveAction(Object o, boolean unknownLocation) {<NEW_LINE>MapActivity mapActivity = getMapActivity();<NEW_LINE>OsmandSettings settings = getApplication().getSettings();<NEW_LINE>if (unknownLocation || mapActivity == null || !(o instanceof MapMarker) || !settings.SELECT_MARKER_ON_SINGLE_TAP.get() |...
(old)).show();
1,675,731
public void purgeItem(final long queueItemId) {<NEW_LINE>try {<NEW_LINE>Transaction.execute(new TransactionCallbackNoReturn() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void doInTransactionWithoutResult(TransactionStatus status) {<NEW_LINE>SyncQueueItemVO itemVO = _syncQueueItemDao.findById(queueItemId);<NEW_LINE>i...
getQueueSize() > 0) : "Count reduce happens when it's already <= 0!";
628,611
private String modify(String exp) throws InvalidExpressionException {<NEW_LINE>// Normalize digit equivalents, fraction sign, decimal separators and minus sign<NEW_LINE>char[] chars = exp.toCharArray();<NEW_LINE>for (int i = 0; i < chars.length; i++) {<NEW_LINE>int value = Character.getNumericValue(chars[i]);<NEW_LINE>...
exp = String.copyValueOf(chars);
390,916
public void run() {<NEW_LINE>try {<NEW_LINE>ConcurrentLog.info("SMWLISTSYNC", "Importer run()");<NEW_LINE>Object obj = this.parser.parse(this.importFile);<NEW_LINE>JSONObject jsonObject = (JSONObject) obj;<NEW_LINE>JSONArray items = (JSONArray) jsonObject.get("items");<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>I...
listEntries.put(SMWListRow.POISON);
1,373,547
public static Story fromCursor(final Cursor cursor) {<NEW_LINE>if (cursor.isBeforeFirst()) {<NEW_LINE>cursor.moveToFirst();<NEW_LINE>}<NEW_LINE>Story story = new Story();<NEW_LINE>story.authors = cursor.getString(cursor.getColumnIndex(DatabaseConstants.STORY_AUTHORS));<NEW_LINE>story.shortContent = cursor.getString(cur...
.getColumnIndex(DatabaseConstants.STORY_SHORT_CONTENT));
519,925
protected void readLoca() throws IOException, DocumentException {<NEW_LINE>int[] tableLocation;<NEW_LINE>tableLocation = tableDirectory.get("head");<NEW_LINE>if (tableLocation == null)<NEW_LINE>throw new DocumentException(MessageLocalization.getComposedMessage("table.1.does.not.exist.in.2", "head", fileName));<NEW_LINE...
k] = rf.readInt();
1,152,617
private void updateButtons(View view) {<NEW_LINE>View buttonsContainer = view.findViewById(R.id.buttons_container);<NEW_LINE>buttonsContainer.setBackgroundColor(AndroidUtils.getColorFromAttr(view.getContext()<MASK><NEW_LINE>applyButton.setOnClickListener(new View.OnClickListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LIN...
, R.attr.bg_color));
295,627
public AnnotationParsedLine parse(String line) {<NEW_LINE>AnnotationParsedLine result = null;<NEW_LINE>// NOI18N<NEW_LINE>String[] tokens = line.split("\\(");<NEW_LINE>for (ComplexAnnotation annotation : ANNOTATIONS) {<NEW_LINE>if (tokens.length > 0 && AnnotationUtils.isTypeAnnotation(tokens[0], annotation.getName())) ...
tokens[0].trim();
24,403
public com.amazonaws.services.simplesystemsmanagement.model.MaxDocumentSizeExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.simplesystemsmanagement.model.MaxDocumentSizeExceededException maxDocumentSizeExceededException = new com.amazonaws.servi...
JsonToken token = context.getCurrentToken();
1,093,568
public SegmentHeader constrain(SegmentColumn[] region) {<NEW_LINE>final Map<String, SegmentColumn> newRegions = new HashMap<String, SegmentColumn>();<NEW_LINE>for (SegmentColumn excludedRegion : excludedRegions) {<NEW_LINE>newRegions.put(excludedRegion.columnExpression, excludedRegion);<NEW_LINE>}<NEW_LINE>for (Segment...
put(col.columnExpression, col);
270,230
public static void toJSON(OutputWriter jsonWriter, JobInstance jobInstance) {<NEW_LINE>jsonWriter.add("name", jobInstance.getName());<NEW_LINE>if (jobInstance.getState() != null) {<NEW_LINE>jsonWriter.add("state", jobInstance.getState().toString());<NEW_LINE>}<NEW_LINE>if (jobInstance.getResult() != null) {<NEW_LINE>js...
("stage_name", (String) null);
1,805,763
protected void performLiquibaseTask(Liquibase liquibase) throws LiquibaseException {<NEW_LINE>super.performLiquibaseTask(liquibase);<NEW_LINE>switch(type) {<NEW_LINE>case COUNT:<NEW_LINE>{<NEW_LINE>liquibase.rollback(rollbackCount, rollbackScript, new Contexts(contexts), new LabelExpression(labels));<NEW_LINE>break;<NE...
), new LabelExpression(labels));
1,624,329
public String findMessage(String bundleName, final Locale locale, final String key) {<NEW_LINE>final String indexedKey = calcIndexKey(key);<NEW_LINE>// hierarchy<NEW_LINE>String name = bundleName;<NEW_LINE>while (true) {<NEW_LINE>final String msg = getMessage(name, locale, key, indexedKey);<NEW_LINE>if (msg != null) {<...
bname, locale, key, indexedKey);
357,469
public Path run(final Session<?> session) throws BackgroundException {<NEW_LINE>final Touch feature = session.getFeature(Touch.class);<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug(String.format("Run with feature %s", feature));<NEW_LINE>}<NEW_LINE>final TransferStatus status = new TransferStatus().withTimest...
session.getFeature(AclPermission.class);
326,200
// rb_str_buf_cat_ascii<NEW_LINE>public final RubyString catAscii(byte[] bytes, int ptr, int ptrLen) {<NEW_LINE>Encoding enc = value.getEncoding();<NEW_LINE>if (enc.isAsciiCompatible()) {<NEW_LINE>EncodingUtils.encCrStrBufCat(getRuntime(), this, new ByteList(bytes, ptr, ptrLen), enc, CR_7BIT);<NEW_LINE>} else {<NEW_LIN...
byte[enc.maxLength()];
1,798,371
public void onSubmit(Object task, PolicyTaskFuture<?> future, int invokeAnyCount) {<NEW_LINE>// notify listener: taskSubmitted<NEW_LINE>if (task instanceof ManagedTask) {<NEW_LINE>ManagedTaskListener listener = ((<MASK><NEW_LINE>if (listener != null) {<NEW_LINE>ThreadContext tranContextRestorer = managedExecutor.suspen...
ManagedTask) task).getManagedTaskListener();
566,287
private void featureMaskQrCode(int numModules, int[] alignment, boolean hasVersion) {<NEW_LINE>// mark alignment patterns + format info<NEW_LINE>markSquare(0, 0, 9);<NEW_LINE>markRectangle(numModules - 8, 0, 9, 8);<NEW_LINE>markRectangle(0, numModules - 8, 8, 9);<NEW_LINE>// timing pattern<NEW_LINE>markRectangle(8, 6, ...
11, 0, 6, 3);
1,124,711
public void visit(BLangForeach foreach, AnalyzerData data) {<NEW_LINE>SymbolEnv foreachEnv = SymbolEnv.createLoopEnv(foreach, data.env);<NEW_LINE>data.loopAndDoClauseEnvs.add(foreachEnv);<NEW_LINE>data.potentiallyInvalidAssignmentInLoopsInfo.add(new PotentiallyInvalidAssignmentInfo(new ArrayList<>(), data.env.enclInvok...
analyzeReachability(foreach.body, data);
1,191,623
private void checkMcStore(String mcAccessToken) throws IOException, JSONException {<NEW_LINE>task.publishProgressPublic();<NEW_LINE>URL url = new URL(mcStoreUrl);<NEW_LINE>HttpURLConnection conn = (HttpURLConnection) url.openConnection();<NEW_LINE>conn.setRequestProperty("Authorization", "Bearer " + mcAccessToken);<NEW...
"Product " + i + ": " + prod);
115,361
private static void addMember(ConfigPatternMap<Container> patternMap, ClassDefinition.ClassMember member, Container container) {<NEW_LINE>if (member instanceof ClassDefinition.ItemMember) {<NEW_LINE>Container matched = patternMap.getMatched();<NEW_LINE>if (matched != null) {<NEW_LINE>throw new IllegalArgumentException(...
new MapContainer(container, nestedMember));
115,450
public static DescribeIngressResponse unmarshall(DescribeIngressResponse describeIngressResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeIngressResponse.setRequestId(_ctx.stringValue("DescribeIngressResponse.RequestId"));<NEW_LINE>describeIngressResponse.setCode(_ctx.stringValue("DescribeIngressResponse.Code"));<...
(_ctx.stringValue("DescribeIngressResponse.Data.CertId"));
728,932
public UUID upgradeGFlags(GFlagsUpgradeParams requestParams, Customer customer, Universe universe) {<NEW_LINE>UserIntent userIntent;<NEW_LINE>if (requestParams.masterGFlags.isEmpty() && requestParams.tserverGFlags.isEmpty() && requestParams.getPrimaryCluster() != null) {<NEW_LINE>// If user hasn't provided gflags in th...
masterGFlags = trimFlags(userIntent.masterGFlags);
829,939
public static ReconcileProblem missingProperties(String msg, DynamicSchemaContext dc, Set<String> missingProps, String snippet, int cursorOffset, Node parent, MappingNode map, QuickfixType quickfixType) {<NEW_LINE>YamlPath contextPath = dc.getPath();<NEW_LINE>List<String> segments = Stream.of(contextPath.getSegments())...
, map).addQuickfix(fix);
1,021,445
void createTrustee(Context ctx) throws Exception {<NEW_LINE>// Create Wallet for Trustee<NEW_LINE>log.info("Create wallet - Trustee");<NEW_LINE>ctx.trusteeWalletConfig = new JSONObject().put(<MASK><NEW_LINE>ctx.trusteeWalletKey = new JSONObject().put("key", "trustee_wallet_key").toString();<NEW_LINE>Wallet.createWallet...
"id", "Trustee").toString();
422,531
protected static ClasspathImportServiceCompileTime makeClasspathImportService(Configuration configuration) {<NEW_LINE>TimeAbacus timeAbacus = TimeAbacusFactory.make(configuration.getCommon().getTimeSource().getTimeUnit());<NEW_LINE>ConfigurationCompilerExpression expression = configuration.getCompiler().getExpression()...
), config.getEventTypeName());
1,722,254
public void init(Config.Scope config) {<NEW_LINE>String <MASK><NEW_LINE>String pass = config.get("password");<NEW_LINE>String policy = config.get("hostname-verification-policy");<NEW_LINE>// if "truststore" . "file" is not configured then it is disabled<NEW_LINE>if (storepath == null && pass == null && policy == null) ...
storepath = config.get("file");
1,320,512
public void processTransferableData(final Project project, final Editor editor, final RangeMarker bounds, int caretOffset, Ref<Boolean> indented, final List<FoldingTransferableData> values) {<NEW_LINE>assert values.size() == 1;<NEW_LINE>final FoldingTransferableData value = values.get(0);<NEW_LINE>if (value.getData().l...
endOffset + bounds.getStartOffset());
1,551,110
/* Delete this file. If the file is a folder and it is not empty then<NEW_LINE>* all of its contents are also recursively deleted.<NEW_LINE>*<NEW_LINE>* @param lock the lock obtained by a call to {@link #lock}<NEW_LINE>* @exception IOException if the file could not be deleted<NEW_LINE>*/<NEW_LINE>void handleDelete(File...
null, n, true, false);
327,552
public Collection<ErrorDescription> check(JPAProblemContext ctx, HintContext hc, AttributeWrapper attrib) {<NEW_LINE>if (attrib.getModelElement() instanceof Version) {<NEW_LINE>TreeUtilities treeUtils = ctx.getCompilationInfo().getTreeUtilities();<NEW_LINE>Types types = ctx.getCompilationInfo().getTypes();<NEW_LINE><MA...
TypeMirror attrType = attrib.getType();
1,317,924
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>loggedIn = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).getBoolean(TOKEN_SAVED_KEY, false);<NEW_LINE>toolbar = findViewById(R.id.toolbar);...
listItems(R.id.nav_snapshot_image_generator);
233,402
public void showProgress(VirtualFileSyncPair item) {<NEW_LINE>final ISyncResource resource = fRoot.find(item);<NEW_LINE>if (resource == null || resource.getSyncState() == SyncState.ClientItemDeleted || resource.getSyncState() == SyncState.ServerItemDeleted) {<NEW_LINE>// resource no longer exists<NEW_LINE>return;<NEW_L...
bounds.width, bounds.height);
1,796,837
// TODO Merge with Upload.incomingData<NEW_LINE>private static void bodyAsGraph(HttpAction action, StreamRDF dest) {<NEW_LINE>HttpServletRequest request = action.getRequest();<NEW_LINE>String base = ActionLib.wholeRequestURL(request);<NEW_LINE>ContentType ct = FusekiNetLib.getContentType(request);<NEW_LINE>Lang lang = ...
action, dest, lang, base);
812,156
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "theString", "intPrimitive" };<NEW_LINE>String statementText = "@name('s0') select distinct theString, intPrimitive from SupportBean#length_batch(3) a, SupportBean_A#keepall b where a.theString = b.id";<NEW_LINE>env.compileDeploy(sta...
new SupportBean("E2", 2));
1,327,245
public String findModule(String modName, Object packPath, Object sysPath) {<NEW_LINE>if (modName.endsWith(".*")) {<NEW_LINE>log(<MASK><NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (packPath != null) {<NEW_LINE>log(lvl + 1, "findModule: in pack: %s (%s)", modName, packPath);<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int...
lvl + 1, "findModule: %s", modName);
788,018
public void cancel() {<NEW_LINE>if (CANCELLED.compareAndSet(this, 0, 1)) {<NEW_LINE>if (WINDOW_COUNT.decrementAndGet(this) == 0) {<NEW_LINE>s.cancel();<NEW_LINE>cleanup();<NEW_LINE>} else if (!outputFused) {<NEW_LINE>if (WIP.getAndIncrement(this) == 0) {<NEW_LINE>// remove queued up but unobservable groups from the map...
CANCELLED.set(this, 2);
1,620,307
public void createBuilderInjectMethod(EFragmentHolder holder, Element element, List<ArgHelper> argHelpers) {<NEW_LINE>JDefinedClass builderClass = holder.getBuilderClass();<NEW_LINE>JFieldRef builderArgsField = holder.getBuilderArgsField();<NEW_LINE>JMethod builderMethod = builderClass.method(PUBLIC, holder.narrow(buil...
BundleHelper(getEnvironment(), actualType);
650,436
public String saveLinkedDataverse() {<NEW_LINE>if (linkingDataverseId == null) {<NEW_LINE>JsfHelper.addSuccessMessage(BundleUtil.getStringFromBundle("dataverse.link.select"));<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>linkingDataverse = dataverseService.find(linkingDataverseId);<NEW_LINE>LinkDataverseCommand cmd = new Li...
), linkingDataverse.getDisplayName());
1,492,129
private List<?> stubTestWriteValue(Stub stub, List<?> value) throws RemoteException {<NEW_LINE>while (true) {<NEW_LINE>InputStream in = null;<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>OutputStream out = (OutputStream) stub._request("testWriteValue", true);<NEW_LINE>if (rmicCompatible) {<NEW_LINE>// Enterprise Beans 4.0 (o...
in.read_abstract_interface(List.class);
1,233,525
private void checkProperties(Map<String, String> properties) throws AnalysisException {<NEW_LINE>this.columnSeparator = PropertyAnalyzer.analyzeColumnSeparator(properties, ExportStmt.DEFAULT_COLUMN_SEPARATOR);<NEW_LINE>this.columnSeparator = Delimiter.convertDelimiter(this.columnSeparator);<NEW_LINE>this.rowDelimiter =...
.valueOf(Config.export_task_default_timeout_second));
736,421
private ItemStack tryInsertingFromSide(TransportedItemStack transportedStack, Direction side, boolean simulate) {<NEW_LINE>ItemStack inserted = transportedStack.stack;<NEW_LINE>if (!getHeldItemStack().isEmpty() && !canMergeItems())<NEW_LINE>return inserted;<NEW_LINE>if (!isOutputEmpty() && !canMergeItems())<NEW_LINE>re...
remainder = insert(transportedStack, simulate);
769,806
public static void printUsage() {<NEW_LINE>TreeSet<KeywordExecutable> executables = new TreeSet<>(Comparator.comparing(KeywordExecutable::keyword));<NEW_LINE>executables.addAll(getExecutables(getClassLoader()).values());<NEW_LINE>System.out.println("\nUsage: accumulo <command> [--help] (<argument> ...)\n\n" + " --help...
System.out.println("\nOther Commands:");
420,265
final GetDeploymentGroupResult executeGetDeploymentGroup(GetDeploymentGroupRequest getDeploymentGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDeploymentGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
185,782
// Code adapted from HTSJDK's BlockCompressedInputStream class<NEW_LINE>private BGZFBlockMetadata processNextBlock(InputStream stream, String streamSource) throws IOException {<NEW_LINE>final byte[] buffer = new byte[BlockCompressedStreamConstants.MAX_COMPRESSED_BLOCK_SIZE];<NEW_LINE>long blockAddress = streamOffset;<N...
int remaining = blockLength - BlockCompressedStreamConstants.BLOCK_HEADER_LENGTH;
688,346
private String copyManagedVolumeToSecondaryStorage(VolumeInfo srcVolumeInfo, VolumeInfo destVolumeInfo, HostVO hostVO, String errMsg) {<NEW_LINE>boolean srcVolumeDetached = srcVolumeInfo.getAttachedVM() == null;<NEW_LINE>try {<NEW_LINE>StoragePoolVO storagePoolVO = _storagePoolDao.findById(srcVolumeInfo.getPoolId());<N...
setSrcData(srcVolumeInfo.getTO());
1,309,223
public void run() {<NEW_LINE><MASK><NEW_LINE>Iterator<Map.Entry<UUID, Long>> starts = startRecording.entrySet().iterator();<NEW_LINE>while (starts.hasNext()) {<NEW_LINE>Map.Entry<UUID, Long> start = starts.next();<NEW_LINE>if (time >= start.getValue()) {<NEW_LINE>addPlayer(start.getKey());<NEW_LINE>starts.remove();<NEW...
long time = System.currentTimeMillis();
559,079
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>scrollPane = new javax.swing.JScrollPane();<NEW_LINE>nestedPanel = new javax.swing.JPanel();<NEW_LINE>scrollPane.setHorizon...
, 298, Short.MAX_VALUE));
797,029
public boolean onTouch(View v, MotionEvent event) {<NEW_LINE>switch(event.getAction()) {<NEW_LINE>case MotionEvent.ACTION_DOWN:<NEW_LINE>{<NEW_LINE>mTouchDownPoint[0] = event.getX(0);<NEW_LINE>mTouchDownPoint[1] = event.getY(0);<NEW_LINE>mTouchDownValue = mPageAnimationValue;<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>c...
mEngine, t, rigidity, style);
166,045
public WebDriver augment(WebDriver driver) {<NEW_LINE>Require.nonNull("WebDriver", driver);<NEW_LINE>Require.precondition(driver instanceof HasCapabilities, "Driver must have capabilities", driver);<NEW_LINE>Capabilities caps = ImmutableCapabilities.copyOf(((HasCapabilities) driver).getCapabilities());<NEW_LINE>// Coll...
asSubclass(driver.getClass());
1,326,666
public Request<DescribeServiceUpdatesRequest> marshall(DescribeServiceUpdatesRequest describeServiceUpdatesRequest) {<NEW_LINE>if (describeServiceUpdatesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeServiceUpdatesRequest> reques...
String>) describeServiceUpdatesRequest.getServiceUpdateStatus();
1,587,998
public static QueryUnsetStatusCallResponse unmarshall(QueryUnsetStatusCallResponse queryUnsetStatusCallResponse, UnmarshallerContext context) {<NEW_LINE>queryUnsetStatusCallResponse.setRequestId(context.stringValue("QueryUnsetStatusCallResponse.RequestId"));<NEW_LINE>queryUnsetStatusCallResponse.setSuccess(context.bool...
(context.integerValue("QueryUnsetStatusCallResponse.CallStatusList.PageNumber"));
1,737,114
protected void initChannel(SocketChannel ch) throws URISyntaxException {<NEW_LINE>if (isSecure) {<NEW_LINE>try {<NEW_LINE>ch.pipeline().addLast(SslContextBuilder.forClient().sslProvider(SslProvider.JDK).trustManager(InsecureTrustManagerFactory.INSTANCE).build().newHandler(ch.alloc(), serverAddress.getHostName()<MASK><N...
, serverAddress.getPort()));
295,480
final CreateHostedConfigurationVersionResult executeCreateHostedConfigurationVersion(CreateHostedConfigurationVersionRequest createHostedConfigurationVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createHostedConfigurationVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateHostedConfigurationVersion");
1,697,497
public static final void addEnhancements(SemanticGraph sg, Embedding embeddingMatrix) {<NEW_LINE>embeddings = embeddingMatrix;<NEW_LINE>Pair<IndexedWord, IndexedWord> conjGovOrphanGov = null;<NEW_LINE>int iterations = 0;<NEW_LINE>while ((conjGovOrphanGov = getConjGovOrphanGovPair(sg)) != null && ++iterations < 10) {<NE...
res = align(fullConjunctArguments, gappedConjunctArguments);
774,197
private DriverPropertyInfo create(ClickHouseOption option, Properties props) {<NEW_LINE>DriverPropertyInfo propInfo = new DriverPropertyInfo(option.getKey(), props.getProperty(option.getKey(), String.valueOf(<MASK><NEW_LINE>propInfo.required = false;<NEW_LINE>propInfo.description = option.getDescription();<NEW_LINE>pro...
option.getEffectiveDefaultValue())));
347,015
public void onJobSubmit(final SubmitJobRequest request) {<NEW_LINE>final ActorRef sender = getSender();<NEW_LINE>// if the job is submitted with a userDefinedType check to see if such a job is already running. If so just reply with a reference to it.<NEW_LINE>if (request.getJobDefinition().isPresent()) {<NEW_LINE>Strin...
()), getSelf());
343,683
public static void main(final String[] args) throws Exception {<NEW_LINE>final Options opts = new Options();<NEW_LINE>opts.addOption(Option.builder("b").longOpt("bootstrap-servers").hasArg().desc("Kafka cluster bootstrap server string").build()).addOption(Option.builder("s").longOpt("schema-registry").hasArg().desc("Sc...
cl.getOptionValue("state-dir", "/tmp/kafka-streams");
1,611,241
public void initIndexes(ProcessorConfig processorConfig, boolean withTags, String[] header) {<NEW_LINE>boolean hasBlendedCost = false;<NEW_LINE>boolean useBlendedCost = processorConfig.useBlended;<NEW_LINE>for (String column : header) {<NEW_LINE>if (column.equalsIgnoreCase("UnBlendedCost")) {<NEW_LINE>hasBlendedCost = ...
(withTags ? 0 : -1);
999,370
public short[] decodeFromOpus(AudioPacket decryptedPacket) {<NEW_LINE>int result;<NEW_LINE>ShortBuffer decoded = ShortBuffer.allocate(4096);<NEW_LINE>if (// Flag for packet-loss<NEW_LINE>decryptedPacket == null) {<NEW_LINE>result = Opus.INSTANCE.opus_decode(opusDecoder, null, 0, decoded, OpusPacket.OPUS_FRAME_SIZE, 0);...
= new short[result * 2];
314,711
public void execute(String commandName, ConsoleInput ci, List args) {<NEW_LINE>StatsWriterStreamer sws = StatsWriterFactory.createStreamer(ci.getCore());<NEW_LINE>String file = null;<NEW_LINE>if ((args != null) && (!args.isEmpty()))<NEW_LINE>file = (String) args.get(0);<NEW_LINE>if (file == null) {<NEW_LINE>try {<NEW_L...
sws.write(ci.out);
926,704
private void addV3ClientAuthToTorrc(StringBuffer torrc, ContentResolver contentResolver) {<NEW_LINE>var v3auths = contentResolver.query(V3_CLIENT_AUTH_URI, V3_CLIENT_AUTH_PROJECTION, V3ClientAuth.ENABLED + "=1", null, null);<NEW_LINE>if (v3auths != null) {<NEW_LINE>for (File file : mV3AuthBasePath.listFiles()) {<NEW_LI...
, (i++) + ".auth_private");
233,500
public int viewToModelChecked(DocumentView docView, double x, double y, Shape docViewAlloc, Position.Bias[] biasReturn) {<NEW_LINE>int <MASK><NEW_LINE>int offset = 0;<NEW_LINE>if (pIndex >= 0) {<NEW_LINE>ParagraphView pView = get(pIndex);<NEW_LINE>// Build the children if they are null.<NEW_LINE>// As perf.optimization...
pIndex = viewIndexAtY(y, docViewAlloc);
1,736,350
public void add(double x, double weight) {<NEW_LINE>// See http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance<NEW_LINE>if (weight < 0)<NEW_LINE>throw new ArithmeticException("Can not add a negative weight");<NEW_LINE>else if (weight == 0)<NEW_LINE>return;<NEW_LINE>double n1 = n;<NEW_LINE>n += weight;<NEW_...
* delta * (x - mean);
266,016
private void logFailures(String stagedRepositoryId) {<NEW_LINE>try {<NEW_LINE>StagingRepositoryActivity[] activities = this.restTemplate.getForObject(NEXUS_STAGING_PATH + "repository/" + stagedRepositoryId + "/activity", StagingRepositoryActivity[].class);<NEW_LINE>List<String> failureMessages = Stream.of(activities).f...
collect(Collectors.toList());
560,648
private void initializeRecyclerView(Bundle savedInstanceState) {<NEW_LINE>// Initialize Adapter and RecyclerView<NEW_LINE>// OverallAdapter makes use of stableIds, I strongly suggest to implement 'item.hashCode()'<NEW_LINE>FlexibleAdapter.useTag("OverallAdapter");<NEW_LINE>mAdapter <MASK><NEW_LINE>mAdapter.setOnlyEntry...
= new OverallAdapter(getActivity());
1,398,551
public void run() {<NEW_LINE>// This module is included in our distro somewhere... may or may not be turned on.<NEW_LINE>// Whatever - try running some classes from it anyway.<NEW_LINE>try {<NEW_LINE>Class<?> clazz = getKlass(classname);<NEW_LINE>// Method showMethod = wizardClass.getMethod( "handleUpgrade", new Class[...
Level.WARNING, null, e);
1,249,410
final DisableSsoResult executeDisableSso(DisableSsoRequest disableSsoRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disableSsoRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
endClientExecution(awsRequestMetrics, request, response);
1,594,906
final StopBuildBatchResult executeStopBuildBatch(StopBuildBatchRequest stopBuildBatchRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopBuildBatchRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.SERVICE_ID, "CodeBuild");
395,687
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>output.writeEnum(1, type_);<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW_LINE>output.writeInt64(2, term_);<NEW_LINE>}<NEW_LINE>if ...
output.writeInt64(3, index_);
1,371,750
private void saveNormalize(final EncogWriteHelper out) {<NEW_LINE>saveSubSection(out, "NORMALIZE", "CONFIG");<NEW_LINE>out.addSubSection("RANGE");<NEW_LINE>out.addColumn("name");<NEW_LINE>out.addColumn("io");<NEW_LINE>out.addColumn("timeSlice");<NEW_LINE>out.addColumn("action");<NEW_LINE>out.addColumn("high");<NEW_LINE...
addColumn(field.getNormalizedHigh());
782,270
public void added(RuleTemplate element) {<NEW_LINE>String templateUID = element.getUID();<NEW_LINE>Set<String> rules = new HashSet<>();<NEW_LINE>synchronized (this) {<NEW_LINE>Set<String> <MASK><NEW_LINE>if (rulesForResolving != null) {<NEW_LINE>rules.addAll(rulesForResolving);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>for (Strin...
rulesForResolving = mapTemplateToRules.get(templateUID);
893,042
public Map<String, Object> processUpdateCreateParams(Map<String, String> params) {<NEW_LINE>Map<String, Object> newParams = new HashMap<>();<NEW_LINE>String[] createParams = { ApiParams.NAME, ApiParams.ATTENDEE_PW, ApiParams.MODERATOR_PW, ApiParams.VOICE_BRIDGE, ApiParams.WEB_VOICE, ApiParams.DIAL_NUMBER, ApiParams.LOG...
ApiParams.DURATION, ApiParams.WELCOME };
1,672,019
public static void convertUnicodeDecimalToPackedDecimal(char[] unicodeDecimal, int unicodeOffset, byte[] packedDecimal, int packedOffset, int precision, int decimalType) {<NEW_LINE>int size = decimalType == DecimalData.UNICODE_UNSIGNED ? precision : precision + 1;<NEW_LINE>if ((unicodeOffset + size > unicodeDecimal.len...
packedDecimal, packedOffset, precision, decimalType);
495,622
/*<NEW_LINE>* request from fragment to connect/disconnect/reconnect completed<NEW_LINE>*/<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>@Subscribe(threadMode = ThreadMode.MAIN)<NEW_LINE>public void onEventMainThread(PublicizeEvents.ActionCompleted event) {<NEW_LINE>if (isFinishing()) {<NEW_LINE>return;<NEW_LINE>}<NEW_L...
"service", event.getService());
1,410,887
final GetDeviceDefinitionVersionResult executeGetDeviceDefinitionVersion(GetDeviceDefinitionVersionRequest getDeviceDefinitionVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDeviceDefinitionVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
26,528
public void onTextChanged(CharSequence s, int start, int before, int count) {<NEW_LINE>try {<NEW_LINE>mSelectedCustomColor = Color.parseColor("#" + s.toString());<NEW_LINE>} catch (IllegalArgumentException e) {<NEW_LINE>mSelectedCustomColor = Color.BLACK;<NEW_LINE>}<NEW_LINE>mCustomColorIndicator.setBackgroundColor(mSe...
blue = Color.blue(mSelectedCustomColor);
1,052,909
protected void paintTabBorder(Graphics g, int tabIndex, int x, int y, int w, int h, boolean isSelected) {<NEW_LINE>int bottom = h;<NEW_LINE>int right = w - 1;<NEW_LINE>g.translate(x + 1, y);<NEW_LINE>if (isFirstDisplayedTab(tabIndex, y, tabPane.getBounds().y)) {<NEW_LINE>if (isSelected) {<NEW_LINE>// selected and first...
bottom, right - 1, 1);
131,541
public UpdateContactFlowModuleContentResult updateContactFlowModuleContent(UpdateContactFlowModuleContentRequest updateContactFlowModuleContentRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateContactFlowModuleContentRequest);<NEW_L...
UpdateContactFlowModuleContentRequestMarshaller().marshall(updateContactFlowModuleContentRequest);
1,638,829
private static <T1 extends TokenId> List<JoinedTokenSequence.CodeBlock<T1>> calculateCodeBlock(List<TokenSequence<T1>> tss, VirtualSource virtualSource) throws BadLocationException {<NEW_LINE>List<JoinedTokenSequence.CodeBlock<T1>> blocks = new ArrayList<JoinedTokenSequence.CodeBlock<T1>>();<NEW_LINE>for (int i = 0; i ...
T1>(ts, false));
227,641
protected void beforeDetachNic(VmNicInventory nicInventory, Completion completion) {<NEW_LINE>Map data = new HashMap();<NEW_LINE>data.put(Param.VR_NIC.toString(), nicInventory);<NEW_LINE>data.put(Param.VR.toString(), vr);<NEW_LINE>ApplianceVmVO appvm = Q.New(ApplianceVmVO.class).eq(ApplianceVmVO_.uuid, nicInventory.get...
.then(new virtualRouterbeforeDetachNic());
894,109
public void createPartControl(Composite parent) {<NEW_LINE>Server server = ServerManager.getInstance().getServer(serverId);<NEW_LINE>this.setPartName("Connections[" + server.getName() + "]");<NEW_LINE>GridLayout layout = new GridLayout(1, true);<NEW_LINE>layout.marginHeight = 5;<NEW_LINE>layout.marginWidth = 5;<NEW_LIN...
xyGraph.primaryYAxis.setFormatPattern("#,##0");
1,433,103
public int runScript(File scriptfile, File imagedirectory, String[] scriptArgs, String[] forIDE) {<NEW_LINE>if (null == scriptfile) {<NEW_LINE>// run the Ruby statements from argv (special for setup functional test)<NEW_LINE>fillSysArgv(null, null);<NEW_LINE>createScriptingContainer();<NEW_LINE>executeScriptHeader(new ...
"runScript: " + p.toString());
261,094
private static void checkSnippet(BiConsumer<Integer, String> log, int max, LineItr lines, String leadingSpaces, String name) {<NEW_LINE>Pattern end = Pattern.compile("^ *//\\s*end::" + name + "\\s*$", Pattern.MULTILINE);<NEW_LINE>while (lines.hasNext()) {<NEW_LINE>String line = lines.next();<NEW_LINE>if (end.matcher(li...
max + "] characters but was [" + width + "]");
164,043
private void sendResultsToSink(int targetQueueSize) {<NEW_LINE>while (blobResults.size() > targetQueueSize) {<NEW_LINE>// Get the next result from the queue and wait for it to complete.<NEW_LINE>PbfBlobResult blobResult = blobResults.remove();<NEW_LINE>while (!blobResult.isComplete()) {<NEW_LINE>// The thread hasn't fi...
"A PBF decoding worker thread failed, aborting.", blobResult.getException());