idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,172,505
private static void createSignedUrlWithParamer(OSS ossClient) {<NEW_LINE>// Set yourEndpoint to the endpoint of the region in which the bucket is located. For example, if the bucket is located in the China (Hangzhou) region, set yourEndpoint to https://oss-cn-hangzhou.aliyuncs.com.<NEW_LINE>String endpoint = "yourEndpo...
put(OSS_USER_METADATA_PREFIX + "author", "aliy");
1,557,653
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception {<NEW_LINE>if (reader.getLocalName().equals(XmlElementNames.Date)) {<NEW_LINE>SimpleDateFormat sdfin = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");<NEW_LINE>this.date = sdfin.parse(reader.readElementValue());<NEW_LINE>return true;<NEW_L...
reader.readElementValue(SuggestionQuality.class);
1,065,216
private static char parseEscapedChar(final String s) {<NEW_LINE><MASK><NEW_LINE>char c = s.charAt(0);<NEW_LINE>if (c == '\\') {<NEW_LINE>if (1 >= len)<NEW_LINE>throw new RuntimeException("Invalid escaped char in [" + s + "]");<NEW_LINE>c = s.charAt(1);<NEW_LINE>switch(c) {<NEW_LINE>case '\\':<NEW_LINE>return '\\';<NEW_...
int len = s.length();
884,062
public static Map<ConfigName, Map<String, String>> createConfigParameterMap(final String configParameters) {<NEW_LINE>final Map<ConfigName, Map<String, String>> map = new HashMap<>();<NEW_LINE>final Map<String, String> configConfigMap = new LinkedHashMap<>();<NEW_LINE>final Map<String, String> clientConfigMap = new Lin...
put(ConfigName.SCRIPT, scriptConfigMap);
490,271
protected void parseInputParameter(Element elementWithParameters, CallableElement callableElement) {<NEW_LINE>Element extensionsElement = elementWithParameters.element("extensionElements");<NEW_LINE>if (extensionsElement != null) {<NEW_LINE>// input data elements<NEW_LINE>for (Element inElement : extensionsElement.elem...
, elementWithParameters.attribute("id"));
1,204,218
public Response<Void> deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.<MASK><NEW_LINE>}<NEW_LINE>String autom...
format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
1,855,074
private int addPartitionSpecInternal(PartitionSpec spec) {<NEW_LINE>int newSpecId = reuseOrCreateNewSpecId(spec);<NEW_LINE>if (specsById.containsKey(newSpecId)) {<NEW_LINE>this.lastAddedSpecId = newSpecId;<NEW_LINE>return newSpecId;<NEW_LINE>}<NEW_LINE>Schema <MASK><NEW_LINE>PartitionSpec.checkCompatibility(spec, schem...
schema = schemasById.get(currentSchemaId);
1,159,462
private void connect() {<NEW_LINE>openOfficePreferences = preferencesService.getOpenOfficePreferences();<NEW_LINE>Task<OOBibBase> connectTask = new Task<>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected OOBibBase call() throws Exception {<NEW_LINE>updateProgress(ProgressBar.INDETERMINATE_PROGRESS, ProgressBar.INDET...
.lang("Autodetection failed"), ex);
1,712,795
protected void updateItem(Object item, boolean empty) {<NEW_LINE>super.updateItem(item, empty);<NEW_LINE>if (empty) {<NEW_LINE>setText(null);<NEW_LINE>setGraphic(null);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// ComboBoxTableCell<TableEntry, Object><NEW_LINE>String style = null;<NEW_LINE>String text = item == null ? "" : ...
, ColorTools.blue(color));
1,513,523
private Mono<Response<VirtualWanSecurityProvidersInner>> supportedSecurityProvidersWithResponseAsync(String resourceGroupName, String virtualWanName, Context context) {<NEW_LINE>if (this.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.getEndpoint() is required and cannot...
error(new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null."));
393,317
private void initDefaultRoutes(Router router) {<NEW_LINE>router.add(GET, "/", RootTask.class);<NEW_LINE>router.add(GET, "", RootRedirectTask.class);<NEW_LINE>router.add(POST, "/reset", ResetTask.class);<NEW_LINE>router.add(GET, "/mappings", GetAllStubMappingsTask.class);<NEW_LINE>router.add(POST, "/mappings", CreateStu...
GET, "/mappings/{id}", GetStubMappingTask.class);
529,770
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) {<NEW_LINE>this.preSynchronizedInitStateIndex = currentScope.methodScope().recordInitializationStates(flowInfo);<NEW_LINE>// TODO (philippe) shouldn't it be protected by a check whether reachable statement ?<NEW_LINE>// mar...
.synchroVariable.useFlag = LocalVariableBinding.USED;
475,010
public static Video fromString(String spec) {<NEW_LINE>if (spec == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String[] split = spec.split("&vi;");<NEW_LINE>// 'playlistParams' backward compatibility<NEW_LINE>if (split.length == 10) {<NEW_LINE>split = Helpers.appendArray(split, new String[] { null });<NEW_LINE>}<...
.parseStr(split[12]);
1,802,924
public synchronized boolean upgradePlugin(String pluginId, String url, boolean verifyChecksum) throws IOException {<NEW_LINE>// ensure we can download the update BEFORE we remove the existing one<NEW_LINE>File file = download(url, verifyChecksum);<NEW_LINE>if (file == null || !file.exists()) {<NEW_LINE>logger.error("Fa...
.getDescriptor().getVersion();
564,383
public static void main(String[] args) throws IOException {<NEW_LINE>Cmd cmd = MainUtils.parseArguments(args, FLAGS);<NEW_LINE>if (cmd.argsLength() < 2) {<NEW_LINE>MainUtils.printHelpArgs(FLAGS, new String<MASK><NEW_LINE>System.exit(-1);<NEW_LINE>}<NEW_LINE>WavFile wavFile = new WavInput.WavFile(new File(cmd.getArg(0))...
[] { "input.wav", "output.wav" });
1,790,085
/*<NEW_LINE>* Low-level API performing the actual compilation<NEW_LINE>*/<NEW_LINE>public boolean compile(String[] argv) {<NEW_LINE>// decode command line arguments<NEW_LINE>try {<NEW_LINE>configure(argv);<NEW_LINE>if (this.progress != null)<NEW_LINE>this.progress.begin(this.filenames == null ? 0 : this.filenames.leng...
this.currentRepetition, this.maxRepetition);
569,507
public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent permanent = game.getPermanent(source.getSourceId());<NEW_LINE>Player controller = game.<MASK><NEW_LINE>if (controller == null || permanent == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// Imprint a new one<NEW_LINE>Card newCard = game.getCard(...
getPlayer(source.getControllerId());
1,455,512
private void buildRefElement(TypeBuilder.OCDType ocdType, List<TypeMember> xmlElements, ExtendedAttributeDefinition attributeDef, boolean requiredForThisAttribute, String baseId, OCDType ocdReference, boolean topLevel) {<NEW_LINE>if (generateNested(attributeDef) && !!!ocdReference.isInternal() && (topLevel || (ocdRefer...
processExtensions(ocdType, refElement, attributeDef);
54,693
private void updateInternal() {<NEW_LINE>currentViewList.clear();<NEW_LINE>viewMap.clear();<NEW_LINE>// Plan to show all of the views in order to keep the order<NEW_LINE>for (TokenFilter filter : filterList) {<NEW_LINE>try {<NEW_LINE>if (filter.view.isAdmin && !MapTool.getPlayer().isGM()) {<NEW_LINE>continue;<NEW_LINE>...
expandPath(expandedPaths.nextElement());
525,192
// Cleanup: private<NEW_LINE>public synchronized ApiResponse addMemberToMultipleChannels(Set<String> clientGroupIds, Set<Integer> channelKeys, String userId) {<NEW_LINE>ApiResponse apiResponse = null;<NEW_LINE>try {<NEW_LINE>if (!TextUtils.isEmpty(userId)) {<NEW_LINE>String parameters = "";<NEW_LINE>if (clientGroupIds ...
encode(clientGroupId, "UTF-8") + "&";
512,122
private void createConnection(CreatePulsarClientCallBack callBack) throws FlumeException {<NEW_LINE>if (!pulsarClients.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>logger.debug("number of pulsar cluster is {}", pulsarUrl2token.size());<NEW_LINE>for (Map.Entry<String, String> info : pulsarUrl2token.entrySet()) {<NE...
handleCreateClientSuccess(info.getKey());
1,258,751
public boolean forceUnlockIfProcessIsDead() {<NEW_LINE>long pid;<NEW_LINE>for (; ; ) {<NEW_LINE>pid = this.lock.getVolatileValue();<NEW_LINE>if (pid == UNLOCKED)<NEW_LINE>return true;<NEW_LINE>// mask off thread (if used)<NEW_LINE>int realPid = (int) pid;<NEW_LINE>if (!Jvm.isProcessAlive(realPid)) {<NEW_LINE>if (Jvm.is...
, lockKey, path, pid));
413,004
private void registerSetLocationReceiver(@NonNull MapActivity mapActivity) {<NEW_LINE>BroadcastReceiver setLocationReceiver = new BroadcastReceiver() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onReceive(Context context, Intent intent) {<NEW_LINE>String packName = intent.getStringExtra(AIDL_PACKAGE_NAME);<NEW_L...
registerReceiver(setLocationReceiver, mapActivity, AIDL_SET_LOCATION);
1,463,150
public Function parse() {<NEW_LINE>int start = cursor;<NEW_LINE>int startCond = 0;<NEW_LINE>int endCond = 0;<NEW_LINE>int blockStart;<NEW_LINE>int blockEnd;<NEW_LINE>int end = cursor + length;<NEW_LINE>cursor = ParseTools.captureToNextTokenJunction(expr, cursor, end, pCtx);<NEW_LINE>if (expr[cursor = ParseTools.nextNon...
blockEnd - blockStart, fields, pCtx);
512,972
public List<String> buildRuleShardFunctionStrInner(boolean ignoredShardKey) {<NEW_LINE>String ruleShardFuncionName = getRuleShardFuncionName();<NEW_LINE>long enumStepLen = 1;<NEW_LINE>long enumTime = 0;<NEW_LINE>if (tbStandAlone) {<NEW_LINE>if (shardType == SHARD_TYPE_DB) {<NEW_LINE>enumTime = dbCount;<NEW_LINE>} else ...
= new LinkedList<String>();
526,182
static DecoderResult decode(int[] codewords, String ecLevel) throws FormatException {<NEW_LINE>ECIStringBuilder result = new ECIStringBuilder(codewords.length * 2);<NEW_LINE>int codeIndex = textCompaction(codewords, 1, result);<NEW_LINE>PDF417ResultMetadata resultMetadata = new PDF417ResultMetadata();<NEW_LINE>while (c...
char) codewords[codeIndex++]);
859,092
final CreateKeyPairResult executeCreateKeyPair(CreateKeyPairRequest createKeyPairRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createKeyPairRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,853,656
public ServerConfiguration load(String issuer) throws Exception {<NEW_LINE>RestTemplate restTemplate = new RestTemplate(httpFactory);<NEW_LINE>// data holder<NEW_LINE>ServerConfiguration conf = new ServerConfiguration();<NEW_LINE>// construct the well-known URI<NEW_LINE>String url = issuer + "/.well-known/openid-config...
(getAsJwsAlgorithmList(o, "token_endpoint_auth_signing_alg_values_supported"));
1,755,763
public FieldValue applyTo(FieldValue oldValue) {<NEW_LINE>if (oldValue instanceof TensorFieldValue) {<NEW_LINE>Tensor oldTensor = ((TensorFieldValue) oldValue).getTensor().orElseThrow(() -> new IllegalArgumentException("No existing tensor to apply update on"));<NEW_LINE>if (tensor.getTensor().isPresent()) {<NEW_LINE>Do...
getClass().getName());
1,261,804
public PyObject __call__(PyObject[] args, String[] keywords) {<NEW_LINE>PyCursor cursor = (PyCursor) __self__;<NEW_LINE>PyArgParser parser = new PyArgParser(args, keywords);<NEW_LINE>PyObject sql = parser.arg(0);<NEW_LINE>PyObject params = parser.kw("params", Py.None);<NEW_LINE>PyObject bindings = parser.kw("bindings",...
sql, params, bindings, maxrows);
1,694,797
public okhttp3.Call addCommonOperationPolicyCall(File policySpecFile, File synapsePolicyDefinitionFile, File ccPolicyDefinitionFile, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/operation-policies";...
localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
383,358
public static void perform() throws Exception {<NEW_LINE>final String fromVer = "4.1.0";<NEW_LINE>final String toVer = "4.2.0";<NEW_LINE>LOGGER.log(Level.INFO, "Upgrading from version [" + fromVer + "] to version [" + toVer + "]....");<NEW_LINE>final BeanManager beanManager = BeanManager.getInstance();<NEW_LINE>final O...
put(Option.OPTION_VALUE, "");
1,288,727
protected void doMerge(MergeSource mergeSource, MergePolicy.OneMerge merge) throws IOException {<NEW_LINE>int totalNumDocs = merge.totalNumDocs();<NEW_LINE>long totalSizeInBytes = merge.totalBytesSize();<NEW_LINE>long timeNS = System.nanoTime();<NEW_LINE>OnGoingMerge onGoingMerge = new OnGoingMerge(merge);<NEW_LINE>onG...
System.nanoTime() - timeNS);
1,559,943
public static <T1> TypeAdapterFactory newTypeHierarchyFactory(final Class<T1> clazz, final TypeAdapter<T1> typeAdapter) {<NEW_LINE>return new TypeAdapterFactory() {<NEW_LINE><NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>@Override<NEW_LINE>public <T2> TypeAdapter<T2> create(Gson gson, TypeToken<T2> typeToken) {<NEW_...
result = typeAdapter.read(in);
415,752
public static DescribeConfigOptionsResponse unmarshall(DescribeConfigOptionsResponse describeConfigOptionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeConfigOptionsResponse.setRequestId(_ctx.stringValue("DescribeConfigOptionsResponse.RequestId"));<NEW_LINE>describeConfigOptionsResponse.setCode(_ctx.stringValu...
(_ctx.stringValue("DescribeConfigOptionsResponse.StackConfigOption.StackId"));
1,056,861
private Iterator<I_C_Payment> retrievePayments() {<NEW_LINE>final Stopwatch stopwatch = Stopwatch.createStarted();<NEW_LINE>//<NEW_LINE>// Create the selection which we might need to update<NEW_LINE>final IQueryBuilder<I_C_Payment> queryBuilder = queryBL.createQueryBuilder(I_C_Payment.class).addOnlyActiveRecordsFilter(...
COLUMNNAME_DateTrx, Operator.GREATER_OR_EQUAL, p_PaymentDateFrom);
1,013,190
protected void addCommonTaskFields(TaskEntity task, ObjectNode data) {<NEW_LINE>putIfNotNull(data, CmmnAsyncHistoryConstants.FIELD_ID, task.getId());<NEW_LINE>putIfNotNull(data, CmmnAsyncHistoryConstants.FIELD_REVISION, task.getRevision());<NEW_LINE>putIfNotNull(data, CmmnAsyncHistoryConstants.FIELD_NAME, task.getName(...
FIELD_CLAIM_TIME, task.getClaimTime());
1,420,787
public BackupVerificationResult isMetaFileValid(AbstractBackupPath metaBackupPath) {<NEW_LINE>MetaFileBackupValidator metaFileBackupValidator = new MetaFileBackupValidator();<NEW_LINE>BackupVerificationResult result = metaFileBackupValidator.verificationResult;<NEW_LINE>result.remotePath = metaBackupPath.getRemotePath(...
deleteQuietly(metaFile.toFile());
1,259,465
public ListAccessPreviewsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListAccessPreviewsResult listAccessPreviewsResult = new ListAccessPreviewsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonT...
String currentParentElement = context.getCurrentParentElement();
1,019,082
public void actionPerformed(ActionEvent e) {<NEW_LINE>SamplerTestStep previousStep = gotoStep.getTestCase().findPreviousStepOfType(gotoStep, SamplerTestStep.class);<NEW_LINE>if (previousStep == null) {<NEW_LINE>UISupport.showErrorMessage("Missing previous request step");<NEW_LINE>} else {<NEW_LINE>if (previousStep.getT...
previousStep.getName() + "]");
915,233
public void marshall(AwsApiCallAction awsApiCallAction, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsApiCallAction == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(awsApiCallAction.getApi(), API_BINDI...
awsApiCallAction.getServiceName(), SERVICENAME_BINDING);
1,316,257
private Object variables(TokenStream ts, boolean inForInit) throws IOException, JavaScriptException {<NEW_LINE>Object pn = nf.createVariables(ts.getLineno());<NEW_LINE>boolean first = true;<NEW_LINE>sourceAdd((char) ts.VAR);<NEW_LINE>for (; ; ) {<NEW_LINE>Object name;<NEW_LINE>Object init;<NEW_LINE>mustMatchToken(ts, t...
((char) ts.ASSIGN);
933,701
public AccessTokenResponseDetails storeConnectedAccountId(String code, int organizationId) {<NEW_LINE>try {<NEW_LINE>ConfigurationLevel configurationLevel = ConfigurationLevel.organization(organizationId);<NEW_LINE>var options = configurationManager.getFor(Set.of(MOLLIE_API_KEY, MOLLIE_CONNECT_CLIENT_ID, MOLLIE_CONNECT...
), refreshToken, null, true);
619,765
public void onViewCreated(View view, Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>getActivity().setTitle(getString(R.string<MASK><NEW_LINE>int initialPage = -1;<NEW_LINE>if (getArguments() != null) {<NEW_LINE>if (getArguments().containsKey(TomahawkFragment.CONTAINER_FRAG...
.drawer_title_settings).toUpperCase());
1,556,982
private static String query(Command command) {<NEW_LINE>final String METHOD = "query";<NEW_LINE>String name;<NEW_LINE>String cluster;<NEW_LINE>String node;<NEW_LINE>if (command instanceof CommandCreateInstance) {<NEW_LINE>cluster = Utils.sanitizeName(((CommandCreateInstance) command).target);<NEW_LINE>if (((CommandTarg...
(PARAM_ASSIGN_VALUE).append(node);
1,385,210
public void errorTableDoubleClick(Object item) {<NEW_LINE>if (!item.getClass().equals(JavaProblem.class)) {<NEW_LINE>errorTableClick(item);<NEW_LINE>}<NEW_LINE>JavaProblem p = (JavaProblem) item;<NEW_LINE>// MouseEvent evt = null;<NEW_LINE>String[] suggs = p.getImportSuggestions();<NEW_LINE>if (suggs != null && suggs.l...
.getPointerInfo().getLocation();
1,207,328
final DescribeExportConfigurationsResult executeDescribeExportConfigurations(DescribeExportConfigurationsRequest describeExportConfigurationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeExportConfigurationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
905,920
public List<XmlElement> toXmlValues(final String valueElementName, final XmlOutputProcessData xmlOutputProcessData) {<NEW_LINE>if (values == null) {<NEW_LINE>final XmlElement valueElement = XmlChai.<MASK><NEW_LINE>return Collections.singletonList(valueElement);<NEW_LINE>}<NEW_LINE>final List<XmlElement> valuesElement =...
getFactory().newElement(valueElementName);
1,182,897
private JApiReturnType computeReturnTypeChanges(Optional<CtMethod> oldMethodOptional, Optional<CtMethod> newMethodOptional) {<NEW_LINE>JApiReturnType jApiReturnType = new JApiReturnType(JApiChangeStatus.UNCHANGED, Optional.<String>absent(), Optional.<String>absent());<NEW_LINE>if (oldMethodOptional.isPresent() && newMe...
computeReturnType(oldMethodOptional.get());
1,177,917
/*<NEW_LINE>* This method is called from invalidateAll for local invalidations.<NEW_LINE>*/<NEW_LINE>public void invalidate(String sessionId) {<NEW_LINE>if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.FINE)) {<NEW_LINE>StringBuffer sb = new StringBuffer("for ...
iSess = _coreHttpSessionManager.getISession(sessionId);
1,675,249
private // wayne 10<NEW_LINE>void rangeLookupCSV(String[] args) {<NEW_LINE>String filePath = Constants.FILES_PATH + args[0];<NEW_LINE><MASK><NEW_LINE>int keyField = Integer.parseInt(args[1]);<NEW_LINE>int valueField = Integer.parseInt(args[2]);<NEW_LINE>RedBlackBST<String, String> symbolTable = new RedBlackBST<>();<NEW...
In in = new In(filePath);
990,628
private AclLineMatchExpr toAclLineMatchExpr(Collection<FwFrom> fwFroms, TraceElement traceElement) {<NEW_LINE>List<AclLineMatchExpr> conjuncts = // EnumMap is sorted, which gives us deterministic ordering of the And conjuncts<NEW_LINE>fwFroms.stream().collect(groupingBy(FwFrom::getField, () -> new EnumMap<>(Field.class...
return new AndMatchExpr(conjuncts, traceElement);
1,047,738
public BakedModel bake(IModelConfiguration owner, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform, ItemOverrides overrides, ResourceLocation modelLocation) {<NEW_LINE>Map<Direction, Map<IOSideConfig, TextureAtlasSprite>> tex = new EnumMap<>(Direction.class);<NEW_LINE>f...
"_" + cfg.getTextureName());
1,334,437
public static int maskArray(@Sensitive byte[] ba, int start, int end, int resume, @Sensitive byte[] masks) {<NEW_LINE>// start is the first valid byte in the array to mask.<NEW_LINE>// end is that last valid byte in the array to mask.<NEW_LINE>// resume holds where we left off masking<NEW_LINE>int i = start;<NEW_LINE>i...
= (2 + resume) % 4;
1,114,653
public void check(Path file, PageCursor cursor, Root root, GBPTreeConsistencyCheckVisitor<KEY> visitor, CursorContext cursorContext) throws IOException {<NEW_LINE>// TODO: limitation, can't run on an index larger than Integer.MAX_VALUE pages (which is fairly large)<NEW_LINE>long highId = lastId + 1;<NEW_LINE>BitSet see...
idProvider.visitFreelist(freelistSeenIdsVisitor, cursorContext);
1,659,989
private void mergeChangesAndDetermineConflicts(ExternalLocation[] externalLocations, TaskMonitor monitor) throws CancelledException {<NEW_LINE>if (!equivalentExternals(externalLocations[LATEST], externalLocations[MY])) {<NEW_LINE>// Both Latest and My changed it but they don't match.<NEW_LINE>// See what pieces can be ...
latestMyChanges, originalLatestChanges, originalMyChanges, monitor);
862,880
public void handle(GameEvent event) {<NEW_LINE>DebugCommandEvent e = (DebugCommandEvent) event;<NEW_LINE>if (e.getName().equals("putItem")) {<NEW_LINE>GameObject object = GameServer.INSTANCE.getGameUniverse().getObject(e.getObjectId("objectId"));<NEW_LINE>if (object != null) {<NEW_LINE>if (object instanceof Cubot) {<NE...
+ e.getLong("objectId"));
603,036
public void read(org.apache.thrift.protocol.TProtocol iprot, Credentials struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.apa...
skip(iprot, schemeField.type);
1,372,746
protected void executeSynchronous(FlowNode flowNode) {<NEW_LINE>CommandContextUtil.getActivityInstanceEntityManager(commandContext).recordActivityStart(execution);<NEW_LINE>// Execution listener: event 'start'<NEW_LINE>if (CollectionUtil.isNotEmpty(flowNode.getExecutionListeners())) {<NEW_LINE>executeExecutionListeners...
boundaryEventExecutions = createBoundaryEvents(boundaryEvents, execution);
4,868
public void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels) {<NEW_LINE>if (pixels instanceof ByteBuffer)<NEW_LINE>GLES20.glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, (ByteBuffer) pixels);<NEW_LINE>else if (pixe...
, type, (FloatBuffer) pixels);
1,126,702
public static ListMcubeWhitelistsResponse unmarshall(ListMcubeWhitelistsResponse listMcubeWhitelistsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listMcubeWhitelistsResponse.setRequestId(_ctx.stringValue("ListMcubeWhitelistsResponse.RequestId"));<NEW_LINE>listMcubeWhitelistsResponse.setResultMessage(_ctx.stringValue("...
("ListMcubeWhitelistsResponse.ListWhitelistResult.Whitelists[" + i + "].Id"));
456,119
public void purchaseFullVersion(@NonNull final Activity activity) {<NEW_LINE>notifyShowProgress(InAppPurchaseTaskType.PURCHASE_FULL_VERSION);<NEW_LINE>exec(InAppPurchaseTaskType.PURCHASE_FULL_VERSION, new InAppCommand() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(InAppPurchaseHelper helper) {<NEW_LINE>try {...
getFullVersion().getSku());
1,052,561
private PathFragment subFragmentImpl(int beginIndex, int endIndex) {<NEW_LINE>int n = normalizedPath.length();<NEW_LINE>int segmentIndex = 0;<NEW_LINE>int i;<NEW_LINE>for (i = getDriveStrLength(); i < n && segmentIndex < beginIndex; ++i) {<NEW_LINE>if (normalizedPath.charAt(i) == SEPARATOR_CHAR) {<NEW_LINE>++segmentInd...
(), beginIndex, endIndex));
180,778
public Set<Shape> compute(Model model) {<NEW_LINE>Walker walker = new Walker(NeighborProviderIndex.of<MASK><NEW_LINE>// Begin with a mutable set of all trait definitions contained in the model<NEW_LINE>Set<Shape> unused = // Exclude prelude traits -- these are defined by Smithy, not by the model itself<NEW_LINE>model.g...
(model).getProvider());
556,641
public static Map<String, List<LanguageComponentsProvider>> loadProvidersFromSpi(ClassLoader... classloaders) {<NEW_LINE>Map<String, List<LanguageComponentsProvider>> <MASK><NEW_LINE>BiPredicate<LanguageComponentsProvider, LanguageComponentsProvider> sameProvider = (p1, p2) -> {<NEW_LINE>return Objects.equals(p1.name()...
providers = new TreeMap<>();
947,340
public Packet decodePacket(ByteBuffer src) {<NEW_LINE>int pos = src.position();<NEW_LINE>int end = pos + packetLength;<NEW_LINE>int limit = src.limit();<NEW_LINE>try {<NEW_LINE>src.limit(end);<NEW_LINE>src.position(src.position() + Packet.headerLength);<NEW_LINE>if (reverseByteOrder()) {<NEW_LINE>src.order(ByteOrder.LI...
ReplyPacket(flags, requestId, src);
1,274,238
private static JSFunctionData createFormatFunctionData(JSContext context) {<NEW_LINE>return JSFunctionData.createCallOnly(context, new JavaScriptRootNode(context.getLanguage(), null, null) {<NEW_LINE><NEW_LINE>@Child<NEW_LINE>private PropertyGetNode getBoundObjectNode = PropertyGetNode.createGetHidden(BOUND_OBJECT_KEY,...
(JSArguments.getFunctionObject(arguments));
1,094,378
final DeleteInputResult executeDeleteInput(DeleteInputRequest deleteInputRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteInputRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
endClientExecution(awsRequestMetrics, request, response);
274,412
public StoragePool findStoragePool(DiskProfile dskCh, DataCenter dc, Pod pod, Long clusterId, Long hostId, VirtualMachine vm, final Set<StoragePool> avoid) {<NEW_LINE>Long podId = null;<NEW_LINE>if (pod != null) {<NEW_LINE>podId = pod.getId();<NEW_LINE>} else if (clusterId != null) {<NEW_LINE>Cluster cluster = _entityM...
findById(Cluster.class, clusterId);
114,985
public static SourceForBinaryQueryImplementation createCompiledSourceForBinaryQuery(@NonNull AntProjectHelper helper, @NonNull PropertyEvaluator evaluator, @NonNull SourceRoots srcRoots, @NullAllowed SourceRoots testRoots, @NonNull String[] binaryProperties, @NullAllowed String[] testBinaryProperties) {<NEW_LINE>// NOI...
Parameters.notNull("binaryProperties", binaryProperties);
127,867
final GetRelationalDatabaseMetricDataResult executeGetRelationalDatabaseMetricData(GetRelationalDatabaseMetricDataRequest getRelationalDatabaseMetricDataRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRelationalDatabaseMetricDataRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,475,636
final PutEventsResult executePutEvents(PutEventsRequest putEventsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putEventsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<PutEventsRequest> request = null;<NE...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
194,374
public void marshall(AutoMLJobSummary autoMLJobSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (autoMLJobSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(autoMLJobSummary.getAutoMLJobName(),...
autoMLJobSummary.getEndTime(), ENDTIME_BINDING);
1,226,218
public static XmlResourceValue parseArray(XMLEventReader eventReader, StartElement start, Namespaces.Collector namespacesCollector) throws XMLStreamException {<NEW_LINE>List<String> values = new ArrayList<>();<NEW_LINE>for (XMLEvent element = XmlResourceValues.nextTag(eventReader); !XmlResourceValues.isEndTag(element, ...
XmlResourceValues.parseTagAttributes(start)));
1,345,880
public static GetDownloadTicketsListResponse unmarshall(GetDownloadTicketsListResponse getDownloadTicketsListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getDownloadTicketsListResponse.setRequestId(_ctx.stringValue("GetDownloadTicketsListResponse.RequestId"));<NEW_LINE>getDownloadTicketsListResponse.setPageNum(_ctx.i...
("GetDownloadTicketsListResponse.Data[" + i + "].Url"));
539,227
public static Graph sortDFS(Graph g, Graph sortedGraph) {<NEW_LINE>if (g.getTurnCostStorage() != null) {<NEW_LINE>throw new IllegalArgumentException("Sorting the graph is currently not supported in the presence of turn costs");<NEW_LINE>}<NEW_LINE>int nodes = g.getNodes();<NEW_LINE>final IntArrayList nodeList = ArrayUt...
}.start(explorer, startNode);
547,652
protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>final IOperandTreeNode registerOperand2 = i...
, tempVar3, dw, destinationRegister));
1,042,012
protected void performAction(Node[] activatedNodes) {<NEW_LINE>for (Node n : activatedNodes) {<NEW_LINE>final JavaComponentInfo ci = n.getLookup().lookup(JavaComponentInfo.class);<NEW_LINE>if (ci != null) {<NEW_LINE>final FieldInfo fieldInfo = ci.getField();<NEW_LINE>if (fieldInfo != null) {<NEW_LINE>GoToSourceAction.R...
getDefault().notifyLater(d);
1,560,415
public synchronized void add(ActiveSubscription theActiveSubscription) {<NEW_LINE>String channelName = theActiveSubscription.getChannelName();<NEW_LINE>ourLog.info("Adding subscription {} to channel {}", theActiveSubscription.getId(), channelName);<NEW_LINE>myActiveSubscriptionByChannelName.put(<MASK><NEW_LINE>if (myDe...
channelName, theActiveSubscription.getId());
294,588
private static void addConnectorSipEndpointToList(Map<String, Object> sipEndpointProperties) throws UnknownHostException {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>c_logger.<MASK><NEW_LINE>}<NEW_LINE>String endpointHost = (String) sipEndpointProperties.get(HOST_ATTRIBUTE);<NEW_LINE>String tcpPort = S...
traceEntry(null, "addConnectorSipEndpointToList", sipEndpointProperties);
287,574
private static String suggestedNameFollowedWithT(String identifier) {<NEW_LINE>Preconditions.checkArgument<MASK><NEW_LINE>// Some early checks:<NEW_LINE>// TFoo => FooT<NEW_LINE>if (identifier.length() > 2 && identifier.charAt(0) == 'T' && Ascii.isUpperCase(identifier.charAt(1)) && Ascii.isLowerCase(identifier.charAt(2...
(!identifier.isEmpty());
1,440,573
public static DescribeInstancesResponse unmarshall(DescribeInstancesResponse describeInstancesResponse, UnmarshallerContext context) {<NEW_LINE>describeInstancesResponse.setRequestId(context.stringValue("DescribeInstancesResponse.RequestId"));<NEW_LINE>describeInstancesResponse.setPageNumber(context.integerValue("Descr...
("DescribeInstancesResponse.Instances[" + i + "].Port"));
1,773,146
private static Predicate generateRangePredicate(InternalIndex index, Map<String, EqualPredicate> prefixes, int prefixLength, boolean fast) {<NEW_LINE>// see CompositeValue docs for more details on what is going on here<NEW_LINE>String[] components = index.getComponents();<NEW_LINE>Comparable[] from <MASK><NEW_LINE>Comp...
= new Comparable[components.length];
529,405
public List<String> fullJustify(String[] words, int maxWidth) {<NEW_LINE>List<String> ans = new ArrayList<>();<NEW_LINE>int n = words.length;<NEW_LINE>for (int i = 0; i < n; ) {<NEW_LINE>List<String> t = new ArrayList<>();<NEW_LINE>int cnt = <MASK><NEW_LINE>t.add(words[i++]);<NEW_LINE>while (i < n && cnt + 1 + words[i]...
words[i].length();
1,061,530
public static String doGet(String url, Map<String, String> params, Map<String, String> headers) {<NEW_LINE>try {<NEW_LINE>String paramStr = encodingParams(params, DEFAULT_ENCODING);<NEW_LINE>String fullUrl = (paramStr == null) ? url : url + "?" + paramStr;<NEW_LINE>URL u = new URL(fullUrl);<NEW_LINE>HttpURLConnection c...
IOUtils.toString(is, DEFAULT_ENCODING);
1,447,473
private static void seedProducts() throws StripeException {<NEW_LINE>Stripe.apiKey = System.getenv("STRIPE_SECRET_KEY");<NEW_LINE>List<Map> productsToAdd = new ArrayList<Map>();<NEW_LINE>// Add Increment Magazine<NEW_LINE>Map<String, Object> incrementMagazine = new HashMap<String, Object>();<NEW_LINE>incrementMagazine....
stripePins.put("id", "pins");
1,398,057
void cut(double t1, double t2, SegmentBuffer subSegmentBuffer) {<NEW_LINE>if (subSegmentBuffer == null)<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>// Make sure buffer contains Line class.<NEW_LINE>subSegmentBuffer.createLine();<NEW_LINE>Segment subSegment = subSegmentBuffer.get();<NEW_LINE>subSegment.assig...
ncomps = VertexDescription.getComponentCount(semantics);
1,363,709
public OResultSet executeSimple(OServerCommandContext ctx) {<NEW_LINE>OSystemDatabase systemDb = ctx.getServer().getSystemDatabase();<NEW_LINE>return systemDb.executeWithDB((db) -> {<NEW_LINE>OInternalResultSet rs = new OInternalResultSet();<NEW_LINE>OSecurityInternal security = ((ODatabaseInternal) db).getSharedContex...
result.setProperty("operation", "alter system role");
1,323,096
private void updateDefaultAccounts(int C_AcctSchema_ID) {<NEW_LINE>log.config("C_AcctSchema_ID=" + C_AcctSchema_ID);<NEW_LINE>MAcctSchema as = new MAcctSchema(getCtx(), C_AcctSchema_ID, get_TrxName());<NEW_LINE>if (as.getAcctSchemaElement("AC").getC_Element_ID() != m_C_Element_ID) {<NEW_LINE>log.log(Level.SEVERE, "C_El...
Level.SEVERE, "Updated=" + no);
63,709
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.impetus.kundera.client.Client#findIdsByColumn(java.lang.String,<NEW_LINE>* java.lang.String, java.lang.String, java.lang.String, java.lang.Object,<NEW_LINE>* java.lang.Class)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public Object[] findIdsByColumn(String schemaN...
Bytes rowKey = rowIter.next();
1,589,166
public static void main(String[] args) throws Exception {<NEW_LINE>BufferedReader br = new BufferedReader(new InputStreamReader(System.in));<NEW_LINE>PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));<NEW_LINE>while (true) {<NEW_LINE>String[] token = br.readLine().split(" ");<NEW_...
(br.readLine()));
696,596
public static GetItemResponse unmarshall(GetItemResponse getItemResponse, UnmarshallerContext _ctx) {<NEW_LINE>getItemResponse.setRequestId(_ctx.stringValue("GetItemResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setItemId(_ctx.stringValue("GetItemResponse.Data.ItemId"));<NEW_LINE>data.setCreateTi...
(_ctx.integerValue("GetItemResponse.Data.Status"));
1,035,423
public static void allocateRecordsFromBytes(Collection<DynamicRecord> recordList, byte[] src, DynamicRecordAllocator dynamicRecordAllocator, CursorContext cursorContext, MemoryTracker memoryTracker) {<NEW_LINE>requireNonNull(src);<NEW_LINE>int dataSize = dynamicRecordAllocator.getRecordDataSize();<NEW_LINE>int payloadS...
srcOffset, data, 0, dataSize);
432,410
public CholeskyDecompositionResult evaluate(DoubleMatrix matrix, double symmetryThreshold, double positivityThreshold) {<NEW_LINE>ArgChecker.notNull(matrix, "Matrix null");<NEW_LINE>int nbRow = matrix.rowCount();<NEW_LINE>int nbCol = matrix.columnCount();<NEW_LINE>ArgChecker.isTrue(nbRow == nbCol, "Matrix not square");...
matrix.get(looprow, loopcol);
962,821
private void extractDsoImpl(InputDso iDso, byte[] ioBuffer) throws IOException {<NEW_LINE>File dsoFileName = new File(soDirectory, iDso.getFileName());<NEW_LINE>RandomAccessFile dsoFile = null;<NEW_LINE>try {<NEW_LINE>if (dsoFileName.exists() && !dsoFileName.setWritable(true)) {<NEW_LINE>Log.w(TAG, "error adding write ...
dsoFile.getFD(), sizeHint);
301,081
void becomeFollower(String method, DiscoveryNode leaderNode) {<NEW_LINE>assert <MASK><NEW_LINE>assert leaderNode.isMasterEligibleNode() : leaderNode + " became a leader but is not master-eligible";<NEW_LINE>assert mode != Mode.LEADER : "do not switch to follower from leader (should be candidate first)";<NEW_LINE>if (mo...
Thread.holdsLock(mutex) : "Coordinator mutex not held";
1,394,952
public ExecutableElement concreteConstructorFor(TypeElement classElement, AnnotationUtils annotationUtils) {<NEW_LINE>if (JavaModelUtils.isRecord(classElement)) {<NEW_LINE>final List<ExecutableElement> constructors = ElementFilter.constructorsIn(classElement.getEnclosedElements());<NEW_LINE>Optional<ExecutableElement> ...
element = findAnnotatedConstructor(annotationUtils, constructors);
370,099
public void marshall(UpdateBackendAuthOAuthConfig updateBackendAuthOAuthConfig, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateBackendAuthOAuthConfig == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(...
updateBackendAuthOAuthConfig.getOAuthScopes(), OAUTHSCOPES_BINDING);
455,734
protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>final IOperandTreeNode registerOperand2 = i...
= (registerOperand2.getValue());
1,681,078
public static DescribeAntChainCertificateApplicationsV2Response unmarshall(DescribeAntChainCertificateApplicationsV2Response describeAntChainCertificateApplicationsV2Response, UnmarshallerContext _ctx) {<NEW_LINE>describeAntChainCertificateApplicationsV2Response.setRequestId(_ctx.stringValue("DescribeAntChainCertificat...
("DescribeAntChainCertificateApplicationsV2Response.Result.CertificateApplications[" + i + "].Username"));