idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
436,727
public static void decompress(final String sourceFile, final String outputDir, final Checksum checksum) throws IOException {<NEW_LINE>try (final FileInputStream fis = new FileInputStream(sourceFile);<NEW_LINE>final CheckedInputStream cis = new CheckedInputStream(fis, checksum);<NEW_LINE>final ZipInputStream zis = new Z...
FileOutputStream fos = new FileOutputStream(entryFile);
419,341
protected void handleException(Throwable failure) {<NEW_LINE>// Unwrap wrapping Jetty and Servlet exceptions.<NEW_LINE>Throwable quiet = unwrap(failure, QuietException.class);<NEW_LINE>Throwable noStack = unwrap(failure, BadMessageException.class, IOException.class, TimeoutException.class);<NEW_LINE>if (quiet != null |...
_request.getRequestURI(), failure);
1,237,879
public boolean doHandle(NavigationState requestedState, AppUI ui) {<NEW_LINE>UrlChangeHandler urlChangeHandler = ui.getUrlChangeHandler();<NEW_LINE>if (urlChangeHandler.isEmptyState(requestedState)) {<NEW_LINE>urlChangeHandler.revertNavigationState();<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!rootChanged(requeste...
()).setResolvedState(requestedState);
1,438,271
public void publish(String senderAddress, String subject, PublishScope scope, Object args) {<NEW_LINE>// publish cannot be in DB transaction, which may hold DB lock too long, and we are guarding this here<NEW_LINE>if (!noDbTxn()) {<NEW_LINE>String errMsg = "NO EVENT PUBLISH CAN BE WRAPPED WITHIN DB TRANSACTION!";<NEW_L...
= new ArrayList<SubscriptionNode>();
286,292
private static MQuery evaluateQuery(String targetTableName, int AD_Tab_ID, String Name, final PO po) {<NEW_LINE>MTab tab = new MTab(Env.getCtx(), AD_Tab_ID, null);<NEW_LINE>final MQuery query = new MQuery();<NEW_LINE>query.addRestriction(targetTableName + "." + po.get_TableName() + <MASK><NEW_LINE>if (tab.getWhereClaus...
"_ID=" + po.get_ID());
814,296
private List<RecordQueryResult.Record> findDeadRecord(final String subject, final String messageId) {<NEW_LINE>final String subjectId = dicService.name2Id(subject);<NEW_LINE>final String keyRegexp = <MASK><NEW_LINE>final String startKey = BackupMessageKeyRangeBuilder.buildDeadRecordStartKey(subjectId, messageId);<NEW_L...
BackupMessageKeyRegexpBuilder.buildDeadRecordRegexp(subjectId, messageId);
16,258
protected int countByUserId(String userId) throws SystemException {<NEW_LINE>Session session = null;<NEW_LINE>try {<NEW_LINE>session = openSession();<NEW_LINE>StringBuffer query = new StringBuffer();<NEW_LINE>query.append("SELECT COUNT(*) ");<NEW_LINE>query.append("FROM PortletPreferences IN CLASS com.liferay.portal.ej...
.list().iterator();
1,420,725
//<NEW_LINE>Reference(//<NEW_LINE>authors = "D. W. Scott", //<NEW_LINE>title = "Multivariate density estimation: Theory, Practice, and Visualization", //<NEW_LINE>booktitle = "Multivariate Density Estimation: Theory, Practice, and Visualization", url = "https://doi.org/10.1002/9780470316849", bibkey = "doi:10.1002/9780...
.put(projected[0]);
1,414,508
private void loadNode89() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.NamespaceMetadataType_NamespaceFile_Writable, new QualifiedName(0, "Writable"), new LocalizedText("en", "Writable"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL_...
(1), 0.0, false);
58,451
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,813,311
public static <V, T> ObjectDoubleMap<V> sumByFloat(T[] array, int size, Function<T, V> groupBy, FloatFunction<? super T> function) {<NEW_LINE>ObjectDoubleHashMap<V> result = ObjectDoubleHashMap.newMap();<NEW_LINE>ObjectDoubleHashMap<V> groupKeyToCompensation = ObjectDoubleHashMap.newMap();<NEW_LINE>for (int i = 0; i < ...
groupKeyToCompensation.getIfAbsentPut(groupByKey, 0.0d);
890,124
public static String checkEntryInner(String urlString) throws Exception {<NEW_LINE>String METHOD = "checkEntryInnter";<NEW_LINE>HttpURLConnection con = null;<NEW_LINE>String msg = null;<NEW_LINE>try {<NEW_LINE>Log.info(thisClass, METHOD, "Check requested type");<NEW_LINE>URL setupURL = new URL(urlString);<NEW_LINE>Log....
InputStream is = con.getInputStream();
1,729,006
private void sendLog(ConsoleCommunication consoleCommunication, String testId) {<NEW_LINE>File logFolder = new File(agentConfig.getHome().getLogDirectory(), testId);<NEW_LINE>if (!logFolder.exists()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File[] logFiles = logFolder.listFiles((dir, name) -> (name.endsWith(".log")));<NE...
defaultCharset(), StandardCharsets.UTF_8);
1,098,902
protected MapValueBuilder queryStats(QueryStatistics queryStatistics) {<NEW_LINE>MapValueBuilder builder = new MapValueBuilder();<NEW_LINE>addIfNonZero(builder, "nodes-created", queryStatistics.getNodesCreated());<NEW_LINE>addIfNonZero(builder, "nodes-deleted", queryStatistics.getNodesDeleted());<NEW_LINE>addIfNonZero(...
"constraints-removed", queryStatistics.getConstraintsRemoved());
231,229
// end utilities<NEW_LINE>static void test_i386(byte[] code) {<NEW_LINE>fd_chains.clean();<NEW_LINE>System.out.printf("Emulate i386 code\n");<NEW_LINE>try {<NEW_LINE>// Initialize emulator in X86-32bit mode<NEW_LINE>Unicorn mu = new Unicorn(Unicorn.UC_ARCH_X86, Unicorn.UC_MODE_32);<NEW_LINE>// map 2MB memory for this e...
mu.mem_write(ADDRESS, code);
1,065,228
public void marshall(UpdateIntegrationRequest updateIntegrationRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateIntegrationRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateIntegr...
updateIntegrationRequest.getContentHandlingStrategy(), CONTENTHANDLINGSTRATEGY_BINDING);
855,099
private V deserializeVersion0(final short version, final DataInput in) throws IOException {<NEW_LINE>final <MASK><NEW_LINE>switch(termCode) {<NEW_LINE>case ITermIndexCodes.TERM_CODE_BND:<NEW_LINE>{<NEW_LINE>return (V) valueFactory.createBNode(in.readUTF());<NEW_LINE>}<NEW_LINE>case ITermIndexCodes.TERM_CODE_URI:<NEW_LI...
byte termCode = in.readByte();
492,675
private Expression rewriteTemporary(ArithmeticOperation arith) {<NEW_LINE>Expression lhs = arith.getLhs();<NEW_LINE>Expression rhs = arith.getRhs();<NEW_LINE>boolean safe = isSideEffectFree<MASK><NEW_LINE>ComparisonOperation compareEq;<NEW_LINE>if (safe) {<NEW_LINE>compareEq = new ComparisonOperation(arith.getLoc(), lh...
(lhs) && isSideEffectFree(rhs);
1,751,931
public void doFinally() {<NEW_LINE>if (t[0] == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>org.compiere.model.I_AD_User userInCharge = Services.get(IBPartnerOrgBL.class).retrieveUserInChargeOrNull(ctx, olCand.getAD_Org_ID(), trxName);<NEW_LINE>if (userInCharge == null) {<NEW_LINE>userInCharge = InterfaceWrapperHelper....
), I_AD_User.class, trxName);
194,742
private void warmUp(Callback<None> callback) {<NEW_LINE>// we want to be certain that the warm up doesn't take more than warmUpTimeoutSeconds<NEW_LINE>Callback<None> timeoutCallback = new TimeoutCallback<>(_executorService, _warmUpTimeoutSeconds, TimeUnit.SECONDS, new Callback<None>() {<NEW_LINE><NEW_LINE>@Override<NEW...
onSuccess(None.none());
522,610
public void validate(final EventBasedGateway element, final ValidationResultCollector validationResultCollector) {<NEW_LINE>final Collection<SequenceFlow> outgoingSequenceFlows = element.getOutgoing();<NEW_LINE>if (outgoingSequenceFlows.size() < 2) {<NEW_LINE>validationResultCollector.addError(0, "Event-based gateway m...
).allMatch(this::isValidOutgoingSequenceFlow);
298,074
public StreamResponse asContentResponse(final Map<String, Object> doc) {<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>final FessConfig fessConfig = ComponentUtil.getFessConfig();<NEW_LINE>final CrawlingConfigHelper crawlingConfigHelper = ComponentUtil.getCrawlingConfigHelper();<NEW_LINE>f...
logger.debug("writing the content of: {}", doc);
603,239
final GetCelebrityRecognitionResult executeGetCelebrityRecognition(GetCelebrityRecognitionRequest getCelebrityRecognitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCelebrityRecognitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
endClientExecution(awsRequestMetrics, request, response);
207,402
private void jbInit() throws Exception {<NEW_LINE>this.setSize(new Dimension(800, 800));<NEW_LINE>this.setTitle("JTS TestBuilder");<NEW_LINE>this.setJMenuBar(tbMenuBar.getMenuBar());<NEW_LINE>fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);<NEW_LINE>fileChooser.setMultiSelectionEnabled(false);<NEW_LINE>fileAn...
add(testCasePanel, BorderLayout.CENTER);
658,081
private static GalenPageTest gridGalenPageTest(String[] args, String originalText, Place place) {<NEW_LINE>GalenCommand command = new GalenCommandLineParser().parse(args);<NEW_LINE>List<String> leftovers = command.getLeftovers();<NEW_LINE>if (leftovers.size() == 0) {<NEW_LINE>throw new <MASK><NEW_LINE>}<NEW_LINE>String...
SyntaxException(place, "Cannot parse grid arguments: " + originalText);
438,799
public static Result restCompare() {<NEW_LINE>DynamicForm form = Form.form().bindFromRequest(request());<NEW_LINE>String flowExecId1 = form.get(COMPARE_FLOW_ID1);<NEW_LINE>flowExecId1 = (flowExecId1 != null) ? flowExecId1.trim() : null;<NEW_LINE>String flowExecId2 = form.get(COMPARE_FLOW_ID2);<NEW_LINE>flowExecId2 = (f...
, List<AppResult>>();
442,203
// Returns true of scanning actually was started, false if it did not need to be<NEW_LINE>private boolean startScanning() {<NEW_LINE>BeaconManager beaconManager = <MASK><NEW_LINE>beaconManager.setScannerInSameProcess(true);<NEW_LINE>if (beaconManager.isMainProcess()) {<NEW_LINE>LogManager.i(TAG, "scanJob version %s is ...
BeaconManager.getInstanceForApplication(getApplicationContext());
1,077,514
public SubjectAreaOMASAPIResponse<HasA> createTermHasARelationship(String serverName, String userId, HasA termHasARelationship) {<NEW_LINE>String restAPIName = "createTermHasARelationship";<NEW_LINE>RESTCallToken token = restCallLogger.logRESTCall(serverName, userId, restAPIName);<NEW_LINE>SubjectAreaOMASAPIResponse<Ha...
getAuditLog(userId, serverName, restAPIName);
1,510,200
public List<ValidationEvent> validate(Model model) {<NEW_LINE>ConditionKeysIndex conditionIndex = ConditionKeysIndex.of(model);<NEW_LINE>TopDownIndex topDownIndex = TopDownIndex.of(model);<NEW_LINE>return model.shapes(ServiceShape.class).filter(service -> service.hasTrait(ServiceTrait.class)).flatMap(service -> {<NEW_L...
.tickedList(knownKeys))));
1,637,796
public CharSequence format(Number value) {<NEW_LINE>double d = value.doubleValue();<NEW_LINE>if (Double.isNaN(d)) {<NEW_LINE>return String.format(Locale.ENGLISH, "%" + totalLength + "s", "nan");<NEW_LINE>} else if (Double.isInfinite(d)) {<NEW_LINE>if (d > 0) {<NEW_LINE>return String.format(Locale.ENGLISH, "%" + totalLe...
1) + '.' + precision + "f.";
1,724,348
public Pair<INDArray, MaskState> feedForwardMaskArray(INDArray maskArray, MaskState currentMaskState, int minibatchSize) {<NEW_LINE>if (maskArray == null) {<NEW_LINE>for (int i = 0; i < layers.length; i++) {<NEW_LINE>layers[i].feedForwardMaskArray(null, null, minibatchSize);<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>// Do ...
feedForwardMaskArray(maskArray, currentMaskState, minibatchSize);
1,313,607
public String doGet(Model model) {<NEW_LINE>Map<String, Object> map = new HashMap<>();<NEW_LINE>map.put("transcodings", transcodingService.getAllTranscodings());<NEW_LINE>map.put("transcodeDirectory", SettingsService.getTranscodeDirectory());<NEW_LINE>map.put("downsampleCommand", settingsService.getDownsamplingCommand(...
"hlsCommand", settingsService.getHlsCommand());
1,698,901
public void onBindViewHolder(@NonNull BaseViewHolder viewHolder, int position) {<NEW_LINE>super.onBindViewHolder(viewHolder, position);<NEW_LINE>if (viewHolder instanceof RepoViewHolder) {<NEW_LINE>RepoViewHolder holder = (RepoViewHolder) viewHolder;<NEW_LINE>Repository model = data.get(position).getM1();<NEW_LINE>hold...
WindowUtil.dipToPx(context, 2);
503,493
private FlowScope traverseOptChain(Node n, FlowScope scope) {<NEW_LINE>checkArgument(NodeUtil.isOptChainNode(n));<NEW_LINE>if (NodeUtil.isEndOfOptChainSegment(n)) {<NEW_LINE>// Create new optional chain tracking object and push it onto the stack.<NEW_LINE>final Node startOfChain = NodeUtil.getStartOfOptChainSegment(n);...
checkState(currentChain.endOfChain == n);
294,037
private int findOtherSubMessage(int partIndex) {<NEW_LINE>int count = msgPattern.countParts();<NEW_LINE>MessagePattern.Part part = msgPattern.getPart(partIndex);<NEW_LINE>if (part.getType().hasNumericValue()) {<NEW_LINE>++partIndex;<NEW_LINE>}<NEW_LINE>// Iterate over (ARG_SELECTOR [ARG_INT|ARG_DOUBLE] message) tuples<...
partIndex = msgPattern.getLimitPartIndex(partIndex);
731,840
private static Vector apply(CompLongIntVector v1, LongDummyVector v2, Binary op) {<NEW_LINE>LongIntVector[] parts = v1.getPartitions();<NEW_LINE>Storage[] resParts = StorageSwitch.<MASK><NEW_LINE>if (!op.isKeepStorage()) {<NEW_LINE>for (int i = 0; i < parts.length; i++) {<NEW_LINE>if (parts[i].getStorage() instanceof L...
applyComp(v1, v2, op);
16,839
private void resetColorsCache(boolean useInbuiltDefaults) {<NEW_LINE>fColorsCache.clear();<NEW_LINE>for (EClass eClass : ArchimateModelUtils.getAllArchimateClasses()) {<NEW_LINE>Color color = useInbuiltDefaults ? ColorFactory.getInbuiltDefaultFillColor(eClass) : ColorFactory.getDefaultFillColor(eClass);<NEW_LINE>fColor...
) : ColorFactory.getDefaultLineColor(eClass);
252,867
public synchronized void process(JCas jcas) throws AnalysisEngineProcessException {<NEW_LINE>JCas questionView, answerHitlist;<NEW_LINE>try {<NEW_LINE>questionView = jcas.getView("Question");<NEW_LINE>answerHitlist = jcas.getView("AnswerHitlist");<NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new AnalysisEngineProces...
(Answer) answers.next();
552,934
protected Object rbTrEncMbcCaseFold(RubyEncoding enc, int flags, Object string, Object write_p, Object p, @CachedLibrary(limit = "LIBSTRING_CACHE") RubyStringLibrary strings, @CachedLibrary("write_p") InteropLibrary receivers, @Cached RopeNodes.BytesNode getBytes, @Cached TranslateInteropExceptionNode translateInteropE...
.CR_UNKNOWN), Encodings.US_ASCII);
764,175
public static UnsafeBuffer createDefaultHeader(final int sessionId, final int streamId, final int termId) {<NEW_LINE>final UnsafeBuffer buffer = new UnsafeBuffer(BufferUtil.allocateDirectAligned(HEADER_LENGTH, CACHE_LINE_LENGTH));<NEW_LINE>buffer.putByte(VERSION_FIELD_OFFSET, CURRENT_VERSION);<NEW_LINE>buffer.putByte(F...
putInt(STREAM_ID_FIELD_OFFSET, streamId, LITTLE_ENDIAN);
654,132
public static List<Part> findMultipartSignedParts(Part startPart, MessageCryptoAnnotations messageCryptoAnnotations) {<NEW_LINE>List<Part> signedParts = new ArrayList<>();<NEW_LINE>Stack<Part> partsToCheck = new Stack<>();<NEW_LINE>partsToCheck.push(startPart);<NEW_LINE>while (!partsToCheck.isEmpty()) {<NEW_LINE>Part p...
MimeBodyPart replacementData = resultAnnotation.getReplacementData();
51,268
private static int interp(int rgb0, int rgb1, int fract0, int fract1) {<NEW_LINE>int a0 = (rgb0 >> 24) & 0xff;<NEW_LINE>int r0 = (rgb0 >> 16) & 0xff;<NEW_LINE>int g0 = (rgb0 >> 8) & 0xff;<NEW_LINE>int b0 = (rgb0) & 0xff;<NEW_LINE>int a1 = (rgb1 >> 24) & 0xff;<NEW_LINE>int r1 = (rgb1 >> 16) & 0xff;<NEW_LINE>int g1 = (rg...
int b1 = (rgb1) & 0xff;
1,236,457
private void addParametersToEachOperation(PathItem pathItem) {<NEW_LINE>if (settings.addParametersToEachOperation()) {<NEW_LINE>List<Parameter<MASK><NEW_LINE>if (parameters != null) {<NEW_LINE>// add parameters to each operation<NEW_LINE>List<Operation> operations = pathItem.readOperations();<NEW_LINE>if (operations !=...
> parameters = pathItem.getParameters();
1,375,836
private void handleJsonRPCRequest(final RoutingContext routingContext) {<NEW_LINE>// first check token if authentication is required<NEW_LINE>final String token = getAuthToken(routingContext);<NEW_LINE>// we check the no auth api methods actually match what's in the request later on<NEW_LINE>if (authenticationService.i...
.getBodyAsString().trim();
920,270
private void onSoundSettings() {<NEW_LINE>Uri current = Prefs.getChatRingtone(this, chatId);<NEW_LINE>Uri defaultUri = Prefs.getNotificationRingtone(this);<NEW_LINE>if (current == null)<NEW_LINE>current = Settings.System.DEFAULT_NOTIFICATION_URI;<NEW_LINE>else if (current.toString().isEmpty())<NEW_LINE>current = null;<...
putExtra(RingtoneManager.EXTRA_RINGTONE_DEFAULT_URI, defaultUri);
210,036
protected List<MemoryQueryResultRow> init(final ShardingRule shardingRule, final ShardingSphereSchema schema, final SQLStatementContext<?> sqlStatementContext, final List<QueryResult> queryResults) throws SQLException {<NEW_LINE>SelectStatementContext selectStatementContext = (SelectStatementContext) sqlStatementContex...
= new HashMap<>(1024);
706,225
private VaadinSession createAndRegisterSession(VaadinRequest request) throws ServiceException {<NEW_LINE>assert ((ReentrantLock) getSessionLock(request.getWrappedSession())).isHeldByCurrentThread() : "Session has not been locked by this thread";<NEW_LINE>VaadinSession session = createVaadinSession(request);<NEW_LINE>Va...
getBrowser().updateRequestDetails(request);
946,433
final DeleteReportResult executeDeleteReport(DeleteReportRequest deleteReportRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteReportRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,360,857
private void transferFile() {<NEW_LINE>dumpParams();<NEW_LINE>// source includes /mnt/sdcard/ which would be prefixed again by the file transfer service, therefore we need to delete it<NEW_LINE>String source = path;<NEW_LINE>int sdcardPathPos = path.indexOf("/mnt/sdcard/");<NEW_LINE>if (sdcardPathPos == 0)<NEW_LINE>// ...
source = path.substring(12);
64,661
public void checkValidProxy() throws InstallException {<NEW_LINE>String protocol = null;<NEW_LINE>if (envMap.get("https.proxyUser") != null) {<NEW_LINE>protocol = "https";<NEW_LINE>} else if (envMap.get("http.proxyUser") != null) {<NEW_LINE>protocol = "http";<NEW_LINE>}<NEW_LINE>String proxyPort = (String) <MASK><NEW_L...
envMap.get(protocol + ".proxyPort");
596,507
public void onActivityCreated(Bundle savedInstanceState) {<NEW_LINE>super.onActivityCreated(savedInstanceState);<NEW_LINE>mPaintView = getActivity().findViewById(R.id.custom_paint_view);<NEW_LINE>cancel = mainView.findViewById(R.id.paint_cancel);<NEW_LINE>apply = mainView.<MASK><NEW_LINE>mPaintModeView = mainView.findV...
findViewById(R.id.paint_apply);
424,045
private GitHubConnectorRequest prepareConnectorRequest(GitHubRequest request) throws IOException {<NEW_LINE>GitHubRequest.Builder<?<MASK><NEW_LINE>// if the authentication is needed but no credential is given, try it anyway (so that some calls<NEW_LINE>// that do work with anonymous access in the reduced form should st...
> builder = request.toBuilder();
343,488
public void beginRestoreAsync() {<NEW_LINE>// BEGIN: readme-sample-beginRestoreAsync<NEW_LINE>String folderUrl = "https://myaccount.blob.core.windows.net/myContainer/mhsm-myaccount-2020090117323313";<NEW_LINE>String sasToken = "sv=2020-02-10&ss=b&srt=o&sp=rwdlactfx&se=2021-06-17T07:13:07Z&st=2021-06-16T23:13:07Z&spr=ht...
.out.printf("Backup restored successfully.%n"));
369,839
private Toolbar createToolbar(Commands commands, PublishHtmlSource publishHtmlSource) {<NEW_LINE>Toolbar toolbar = new EditingTargetToolbar(commands, true, column_);<NEW_LINE>// Buttons are unique to a source column so require SourceAppCommands<NEW_LINE>SourceColumnManager mgr = RStudioGinjector.INSTANCE.getSourceColum...
, column_).createToolbarButton());
297,403
public com.squareup.okhttp.Call userGetWalletSummaryCall(String currency, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_...
localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
609,565
public Object invoke(ConfigHandler handler, Object[] args, Object proxy) {<NEW_LINE>try {<NEW_LINE>if (SystemUtils.IS_JAVA_1_8) {<NEW_LINE>// hack to invoke default method of an interface reflectively<NEW_LINE>Constructor<MethodHandles.Lookup> lookupConstructor = MethodHandles.Lookup.class.getDeclaredConstructor(Class....
(proxy).invokeWithArguments(args);
855,828
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).getChildren().size() == 1 ? instruction.getOperands()...
= (registerOperand1.getValue());
1,041,544
protected void addCompletions(@NotNull CompletionParameters completionParameters, @NotNull ProcessingContext processingContext, @NotNull CompletionResultSet resultSet) {<NEW_LINE>if (!Symfony2ProjectComponent.isEnabled(completionParameters.getPosition())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>resultSet.restartCompleti...
).getProject(), 50);
596,197
/* (non-Javadoc)<NEW_LINE>* @see com.ibm.ws.sib.processor.impl.interfaces.DownstreamControl#sendNotFlushedMessage(com.ibm.ws.sib.utils.SIBUuid12)<NEW_LINE>*<NEW_LINE>* Sends an 'I am not flushed' message in response to a query from a target<NEW_LINE>*/<NEW_LINE>public void sendNotFlushedMessage(SIBUuid8 ignore, SIBUuid...
= (ControlNotFlushed) addLinkProps(notFlushed);
292,270
final ListDiscoveredResourcesResult executeListDiscoveredResources(ListDiscoveredResourcesRequest listDiscoveredResourcesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDiscoveredResourcesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,299,965
public static ListControlPoliciesResponse unmarshall(ListControlPoliciesResponse listControlPoliciesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listControlPoliciesResponse.setRequestId<MASK><NEW_LINE>listControlPoliciesResponse.setTotalCount(_ctx.integerValue("ListControlPoliciesResponse.TotalCount"));<NEW_LINE>list...
(_ctx.stringValue("ListControlPoliciesResponse.RequestId"));
922,352
public void marshall(Integration integration, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (integration == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.marshall(integra...
integration.getType(), TYPE_BINDING);
995,794
Map<String, Set<Integer>> queryPartitionNameAndIds(String clusterName) throws SQLException {<NEW_LINE>Map<String, Set<Integer>> nameAndIds = new HashMap<>();<NEW_LINE>try (Connection connection = dataSource.getConnection()) {<NEW_LINE>try (PreparedStatement queryStatement = connection.prepareStatement(queryPartitionIdA...
queryStatement.setString(1, clusterName);
1,624,963
public ChoiceContent unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ChoiceContent choiceContent = new ChoiceContent();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
class).unmarshall(context));
275,190
public static <R> Task<R> flatten(final String desc, final Task<Task<R>> task) {<NEW_LINE>ArgumentUtil.requireNotNull(task, "task");<NEW_LINE>Task<R> flattenTask = async(desc, context -> {<NEW_LINE>final SettablePromise<R> result = Promises.settable();<NEW_LINE>context.after(task).run(() -> {<NEW_LINE>try {<NEW_LINE>if...
Promises.propagateResult(t, result);
222,165
final DescribeCertificatesResult executeDescribeCertificates(DescribeCertificatesRequest describeCertificatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeCertificatesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
invoke(request, responseHandler, executionContext);
1,782,763
private Object addToPrimitiveArray(Object srcObj, FieldMap fieldMap, int size, Object srcCollectionValue, Object destObj, Class<?> destEntryType) {<NEW_LINE>Object result;<NEW_LINE>Object field = fieldMap.getDestValue(destObj);<NEW_LINE>int arraySize = 0;<NEW_LINE>if (field == null) {<NEW_LINE>result = Array.newInstanc...
set(result, arraySize, toValue);
496,552
private I_C_OrderLine createOrderLine(final PurchaseCandidate candidate) {<NEW_LINE>final int flatrateDataEntryId = candidate.getC_Flatrate_DataEntry_ID();<NEW_LINE>final <MASK><NEW_LINE>final Timestamp datePromised = candidate.getDatePromised();<NEW_LINE>final BigDecimal price = candidate.getPrice();<NEW_LINE>final I_...
int huPIItemProductId = candidate.getM_HU_PI_Item_Product_ID();
18,201
// loads a single CSV file, filtering by date<NEW_LINE>private static void parseSingle(Predicate<LocalDate> datePredicate, CharSource resource, Map<LocalDate, ImmutableMap.Builder<FxRateId, FxRate>> mutableMap) {<NEW_LINE>try {<NEW_LINE>CsvFile csv = CsvFile.of(resource, true);<NEW_LINE>for (CsvRow row : csv.rows()) {<...
dateText = row.getField(DATE_FIELD);
62,790
protected Result[] doSearch() {<NEW_LINE>// get a search client<NEW_LINE>BingSearchServiceClientFactory factory = BingSearchServiceClientFactory.newInstance();<NEW_LINE>BingSearchClient client = factory.createBingSearchClient();<NEW_LINE>// configure search client<NEW_LINE>SearchRequestBuilder builder = client.newSearc...
builder.withWebRequestSearchOption(WebSearchOption.DISABLE_QUERY_ALTERATIONS);
1,202,904
protected void initChannel(Channel channel) throws Exception {<NEW_LINE>ChannelPipeline pipeline = channel.pipeline();<NEW_LINE>// Add the ConnectionLimitHandler to the pipeline if configured to do so.<NEW_LINE>if (TransportDescriptor.getNativeTransportMaxConcurrentConnections() > 0 || TransportDescriptor.getNativeTran...
long idleTimeout = TransportDescriptor.nativeTransportIdleTimeout();
1,845,553
protected void adaptGetClassReturnTypeToReceiver(AnnotatedExecutableType getClassType, AnnotatedTypeMirror receiverType, ExpressionTree tree) {<NEW_LINE>TypeMirror type = TreeUtils.typeOf(tree);<NEW_LINE>AnnotatedTypeMirror returnType = AnnotatedTypeMirror.createType(type, this, false);<NEW_LINE>if (returnType == null ...
"Unexpected type passed to AnnotatedTypes.adaptGetClassReturnTypeToReceiver%n" + "getClassType=%s%nreceiverType=%s", getClassType, receiverType);
579,399
public Problem checkParameters() {<NEW_LINE>String newName = refactoring.getNewName();<NEW_LINE>if (newName.length() == 0) {<NEW_LINE>// NOI18N<NEW_LINE>return new Problem(true, NbBundle.getMessage(CssRenameRefactoringPlugin.class, "MSG_Error_ElementEmpty"));<NEW_LINE>}<NEW_LINE>if (context instanceof CssElementContext...
editorContext = (CssElementContext.Editor) context;
655,411
private void runActionTypeInit(FormStructureHelper formStructureHelper) {<NEW_LINE>if ((request.getAttribute(FormsHelper.REQ_ATTR_IS_INIT) == null)) {<NEW_LINE>request.setAttribute(FormsHelper.REQ_ATTR_IS_INIT, "true");<NEW_LINE>final RequestPathInfo requestPathInfo = request.getRequestPathInfo();<NEW_LINE>if (response...
getFormResource(request.getResource());
1,152,874
public void createPartnerAddress(ActionRequest request, ActionResponse response) {<NEW_LINE><MASK><NEW_LINE>Context parentContext = context.getParent();<NEW_LINE>if (parentContext.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String parentModel = (String) parentContext.get("_model");<NEW_LINE>LOG.debug("Create part...
Context context = request.getContext();
164,810
public static GetTaxTypeForAliResponse unmarshall(GetTaxTypeForAliResponse getTaxTypeForAliResponse, UnmarshallerContext _ctx) {<NEW_LINE>getTaxTypeForAliResponse.setRequestId<MASK><NEW_LINE>List<TaxTypeListItem> taxTypeList = new ArrayList<TaxTypeListItem>();<NEW_LINE>for (int i = 0; i < _ctx.lengthValue("GetTaxTypeFo...
(_ctx.stringValue("GetTaxTypeForAliResponse.RequestId"));
1,108,140
private DataSet<byte[]> clearObjs(DataSet<byte[]> raw) {<NEW_LINE>final int localSessionId = sessionId;<NEW_LINE>DataSet<byte[]> clear = expandDataSet2MaxParallelism(BatchOperator.getExecutionEnvironmentFromDataSets(raw).fromElements(0)).mapPartition(new RichMapPartitionFunction<Integer, byte[]>() {<NEW_LINE><NEW_LINE>...
private static final long serialVersionUID = -7819774126101954367L;
1,221,817
public boolean createQueue(String taskTrackerNodeGroup) {<NEW_LINE>String tableName = JobQueueUtils.getExecutableQueueName(taskTrackerNodeGroup);<NEW_LINE>DBCollection dbCollection = template.getCollection(tableName);<NEW_LINE>List<DBObject> indexInfo = dbCollection.getIndexInfo();<NEW_LINE>// create index if not exist...
"idx_taskId_taskTrackerNodeGroup", "taskId, taskTrackerNodeGroup", true, true);
1,086,692
protected void drawDomainGridlines(Graphics2D g2, Rectangle2D dataArea, List ticks) {<NEW_LINE>if (!isDomainGridlinesVisible()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Object saved = g2.getRenderingHint(RenderingHints.KEY_STROKE_CONTROL);<NEW_LINE>g2.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VAL...
g2.setStroke(getDomainGridlineStroke());
1,139,193
public void generate() {<NEW_LINE>Stack<TypeElement> q = new Stack<TypeElement>();<NEW_LINE>Set<TypeElement> visited = new HashSet<TypeElement>();<NEW_LINE>q.push(clz);<NEW_LINE>while (!q.isEmpty()) {<NEW_LINE>TypeElement t = q.pop();<NEW_LINE>// been here already<NEW_LINE>if (!visited.add(t))<NEW_LINE>continue;<NEW_LI...
) sc).asElement());
1,357,951
public String visitQuery(final QueryContext context) {<NEW_LINE>final StringBuilder stringBuilder = new StringBuilder("SELECT ");<NEW_LINE>// visit as select items<NEW_LINE>final List<String> selectItemList = new ArrayList<>();<NEW_LINE>for (SelectItemContext selectItem : context.selectItem()) {<NEW_LINE>if (selectItem...
.add(visit(selectItem));
980,883
final DeleteVPCEConfigurationResult executeDeleteVPCEConfiguration(DeleteVPCEConfigurationRequest deleteVPCEConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteVPCEConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
(super.beforeMarshalling(deleteVPCEConfigurationRequest));
145,064
public byte[] uncompress(byte[] content, final int offset, final int length) {<NEW_LINE>try {<NEW_LINE>final ByteArrayInputStream memoryInputStream = new ByteArrayInputStream(content, offset, length);<NEW_LINE>// 16KB<NEW_LINE>final GZIPInputStream gzipInputStream = new GZIPInputStream(memoryInputStream, 16384);<NEW_LI...
int newSize = 2 * result.length;
223,380
public void initTeam(Long teamId, String operator) {<NEW_LINE>String teamDefaultRepo = System.getenv("TEAM_DEFAULT_REPO");<NEW_LINE>String teamDefaultRegistry = System.getenv("TEAM_DEFAULT_REGISTRY");<NEW_LINE>String <MASK><NEW_LINE>if (!StringUtils.isEmpty(teamDefaultRepo)) {<NEW_LINE>String repo = new String(Base64.g...
teamDefaultAccount = System.getenv("TEAM_DEFAULT_ACCOUNT");
1,034,402
public Container copy(final Container source, Host destination, final User user, final boolean respectFrontendRoles) throws DotDataException, DotSecurityException {<NEW_LINE>if (!permissionAPI.doesUserHavePermission(source, PermissionAPI.PERMISSION_READ, user, respectFrontendRoles)) {<NEW_LINE>throw new DotSecurityExce...
final Container newContainer = new Container();
479,447
public String show(@RequestParam(value = "cluster", required = true) String clusterName, @RequestParam(value = "host", required = true) String host, @RequestParam(value = "port", required = false) String logServerPort, @RequestParam(value = "dir", required = false) String dir, @RequestParam(value = "wport", required = ...
model.addAttribute("workerPort", workerPort);
1,754,528
private void rotateDate() {<NEW_LINE>this.startDate = System.currentTimeMillis();<NEW_LINE>if (handler != null) {<NEW_LINE>handler.close();<NEW_LINE>}<NEW_LINE>SimpleDateFormat format = dateFormatThreadLocal.get();<NEW_LINE>String newPattern = pattern.replace("%d", format.format(new Date()));<NEW_LINE>// Get current da...
setFormatter(this.getFormatter());
739,501
public void onSuccess(@Nullable final Set<String> retainedMessageTopics) {<NEW_LINE>if (retainedMessageTopics == null || retainedMessageTopics.size() == 0) {<NEW_LINE>// Do nothing, we don't have retained messages<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Attention, this set is immutable, so we need a fresh mutable colle...
retainedMessagesSender.writeRetainedMessages(channel, topicBatch);
1,850,812
public static void main(String... args) throws IOException, URISyntaxException {<NEW_LINE>// Figure out paths for current jar and patched jar<NEW_LINE>Path currentFile = Paths.get(PatcherTool.class.getProtectionDomain().getCodeSource().getLocation().toURI());<NEW_LINE>Path oldFile = Paths.get(args[0]);<NEW_LINE>System....
"patched-" + oldFile.getFileName());
1,404,659
public void marshall(CreateExperimentTemplateTargetInput createExperimentTemplateTargetInput, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createExperimentTemplateTargetInput == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protoco...
createExperimentTemplateTargetInput.getResourceTags(), RESOURCETAGS_BINDING);
914,377
public FileVisitResult preVisitDirectory(java.nio.file.Path dir, BasicFileAttributes attrs) throws IOException {<NEW_LINE><MASK><NEW_LINE>if (count == 1) {<NEW_LINE>return FileVisitResult.CONTINUE;<NEW_LINE>}<NEW_LINE>if (count == 2) {<NEW_LINE>// e.g. /9A/java.base<NEW_LINE>java.nio.file.Path mod = dir.getName(1);<NEW...
int count = dir.getNameCount();
112,541
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String clusterName) {<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 (reso...
error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
884,745
public void actionPerformed(@Nonnull AnActionEvent e) {<NEW_LINE>TreeSelectionModel sm = myTree.getSelectionModel();<NEW_LINE><MASK><NEW_LINE>if (query == null)<NEW_LINE>return;<NEW_LINE>List<TreePath> filtered = mySearch.findAllFilteredElements(query);<NEW_LINE>if (filtered.isEmpty())<NEW_LINE>return;<NEW_LINE>boolean...
String query = mySearch.getEnteredPrefix();
1,385,461
private MethodSpec factoryModelMethodUnderContainer(ObjectResolvedType type) {<NEW_LINE>Builder factory = MethodSpec.methodBuilder("new" + type.getName()).addModifiers(PUBLIC).returns(getTypeName(type));<NEW_LINE>List<CodeBlock> <MASK><NEW_LINE>type.getProperties().stream().filter(f -> !isASchemaUrlField(f)).forEach(f ...
factoryParams = new ArrayList<>();
457,947
public TextCommand parser(TextDecoder decoder, String cmd, int space) {<NEW_LINE>StringTokenizer st = new StringTokenizer(cmd);<NEW_LINE>st.nextToken();<NEW_LINE>String key;<NEW_LINE>int valueLen;<NEW_LINE>int flag;<NEW_LINE>int expiration;<NEW_LINE>boolean noReply = false;<NEW_LINE>if (st.hasMoreTokens()) {<NEW_LINE>k...
parseInt(st.nextToken());
1,687,194
public static ListPrefixListsResponse unmarshall(ListPrefixListsResponse listPrefixListsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listPrefixListsResponse.setRequestId(_ctx.stringValue("ListPrefixListsResponse.RequestId"));<NEW_LINE>listPrefixListsResponse.setNextToken(_ctx.stringValue("ListPrefixListsResponse.Next...
("ListPrefixListsResponse.PrefixLists[" + i + "].CreationTime"));
1,454,585
private static ConstantPoolInfo loadConstantPoolInfo(DataInputStream dis) throws IOException {<NEW_LINE>byte tag = dis.readByte();<NEW_LINE>// System.out.println("tag=" + tag);<NEW_LINE>switch(tag) {<NEW_LINE>case 7:<NEW_LINE>return new ConstantClassInfo(dis.readShort());<NEW_LINE>case 9:<NEW_LINE>return new ConstantFi...
), dis.readShort());
1,769,525
protected void openAddLoggerDialog() {<NEW_LINE>AdditionLoggerWindow additionLogger = (AdditionLoggerWindow) openWindow("serverLogAddLoggerDialog", OpenType.DIALOG);<NEW_LINE>additionLogger.addCloseListener(actionId -> {<NEW_LINE>if (COMMIT_ACTION_ID.equals(actionId)) {<NEW_LINE>Level level = additionLogger.getSelected...
String loggerName = additionLogger.getSelectedLoggerName();
518,066
private InsertTabletPlan constructInsertTabletPlan(TSInsertTabletsReq req, int i) throws IllegalPathException {<NEW_LINE>InsertTabletPlan insertTabletPlan = new InsertTabletPlan(new PartialPath(req.prefixPaths.get(i)), req.measurementsList.get(i));<NEW_LINE>insertTabletPlan.setTimes(QueryDataSetUtils.readTimesFromBuffe...
.typesList.get(i));
879,072
public void prepare(final Map stormConf, final TopologyContext context, final OutputCollector collector) {<NEW_LINE>IFn hof = Utils.loadClojureFn(_fnSpec.get(0), _fnSpec.get(1));<NEW_LINE>try {<NEW_LINE>IFn preparer = (IFn) hof.applyTo(RT.seq(_params));<NEW_LINE>final Map<Keyword, Object> collectorMap = new PersistentA...
prepare(stormConf, context, collector);