idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,140,130
public static GetFeeResponse unmarshall(GetFeeResponse getFeeResponse, UnmarshallerContext _ctx) {<NEW_LINE>getFeeResponse.setRequestId(_ctx.stringValue("GetFeeResponse.RequestId"));<NEW_LINE>getFeeResponse.setCanUpdate(_ctx.booleanValue("GetFeeResponse.CanUpdate"));<NEW_LINE>getFeeResponse.setPayer(_ctx.stringValue("G...
(_ctx.stringValue("GetFeeResponse.Kind.Value"));
1,764,269
protected void createColumns() {<NEW_LINE>super.createColumns();<NEW_LINE>TableColumn<ProposalStateBlockListItem, ProposalStateBlockListItem> column;<NEW_LINE>column = new AutoTooltipTableColumn<>(Res.get("dao.monitor.proposal.table.numProposals"));<NEW_LINE>column.setMinWidth(110);<NEW_LINE>column.setCellValueFactory(...
setText(item.getNumProposals());
90,079
public void onAction(CrdtInfoReplicationContext context) {<NEW_LINE>try {<NEW_LINE>RedisInstanceInfo info = context.instance().getCheckInfo();<NEW_LINE>if (info.isMaster()) {<NEW_LINE>CRDTInfoResultExtractor extractor = (CRDTInfoResultExtractor) context.getResult();<NEW_LINE>long recvTimeMilli = context.getRecvTimeMill...
getReplOffset(), recvTimeMilli, info);
1,839,302
public static long[] hash(final Memory mem, final long seed) {<NEW_LINE>Objects.requireNonNull(mem);<NEW_LINE>final <MASK><NEW_LINE>checkPositive(lengthBytes);<NEW_LINE>final Memory memLE = mem.getTypeByteOrder() == ByteOrder.LITTLE_ENDIAN ? mem : mem.region(0, lengthBytes, ByteOrder.LITTLE_ENDIAN);<NEW_LINE>final Hash...
long lengthBytes = mem.getCapacity();
70,880
public //<NEW_LINE>boolean forwardSearch(final String pdfFile, SourceLocation sourceLocation) {<NEW_LINE>if (handleDesktopSynctex()) {<NEW_LINE>// apply concordance<NEW_LINE>final ProgressIndicator indicator = getSyncProgress();<NEW_LINE>server_.applyForwardConcordance(pdfFile, sourceLocation, new ServerRequestCallback...
), sourceLocation.getColumn());
1,437,907
public double[][] chooseInitialMeans(Relation<? extends NumberVector> relation, int k, NumberVectorDistance<?> distance) {<NEW_LINE>if (relation.size() < k) {<NEW_LINE>throw new IllegalArgumentException("Cannot choose k=" + k + " means from N=" + relation.size() + " < k objects.");<NEW_LINE>}<NEW_LINE>DBIDs ids = relat...
DataStoreFactory.HINT_TEMP, Double.POSITIVE_INFINITY);
198,390
public static OFPort portFromString(String s) {<NEW_LINE>if (s == null) {<NEW_LINE>throw new IllegalArgumentException("Port string cannot be null");<NEW_LINE>}<NEW_LINE>s = s.trim().toLowerCase();<NEW_LINE>switch(s) {<NEW_LINE>case MatchUtils.STR_PORT_ALL:<NEW_LINE>return OFPort.ALL;<NEW_LINE>case MatchUtils.STR_PORT_C...
log.debug("Port {} was not a special port string. Parsing as raw int or hex", s);
1,026,722
static void exportPolygonToWkt(int export_flags, Polygon polygon, StringBuilder string) {<NEW_LINE>MultiPathImpl polygon_impl = (MultiPathImpl) polygon._getImpl();<NEW_LINE>if ((export_flags & WktExportFlags.wktExportFailIfNotSimple) != 0) {<NEW_LINE>int simple = polygon_impl.getIsSimple(0.0);<NEW_LINE>if (simple != Mu...
throw new IllegalArgumentException("Cannot export a Polygon with specified export flags: " + export_flags);
1,815,329
public void init(Router router) {<NEW_LINE>router.GET().route("/index").with(ApplicationController::index);<NEW_LINE>router.GET().route("/home"<MASK><NEW_LINE>router.GET().route("/hello").with(ApplicationController::helloWorld);<NEW_LINE>router.GET().route("/userJson").with(ApplicationController::userJson);<NEW_LINE>ro...
).with(ApplicationController::home);
1,302,494
private JComponent buildTablePanel() {<NEW_LINE>stringModel = new StringTableModel(tool, options);<NEW_LINE>threadedTablePanel = new GhidraThreadedTablePanel<>(stringModel, 1000) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected GTable createTable(ThreadedTableModel<FoundString, ?> model) {<NEW_LINE>return new StringTa...
goToService, goToService.getDefaultNavigatable());
1,549,889
public GetIdentityPoolConfigurationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetIdentityPoolConfigurationResult getIdentityPoolConfigurationResult = new GetIdentityPoolConfigurationResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
int originalDepth = context.getCurrentDepth();
611,508
public Value apply(Env env, List<Value> in) {<NEW_LINE>if (in.size() > 1) {<NEW_LINE>SUTime.TemporalOp op = (SUTime.TemporalOp) in.get(0).get();<NEW_LINE>boolean allTemporalArgs = true;<NEW_LINE>Object[] args = new Object[in.size() - 1];<NEW_LINE>for (int i = 0; i < args.length; i++) {<NEW_LINE>Value v = in.get(i + 1);...
[i]).getValue();
1,444,594
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>// noinspection ConstantConditions<NEW_LINE>mRecyclerView = getView().findViewById(R.id.recycler_view);<NEW_LINE>mLayoutManager <MASK><NEW_LINE>final Parcelable eimSavedS...
= new LinearLayoutManager(requireContext());
894,607
public void outAFile(AFile node) {<NEW_LINE>List implementsList = null;<NEW_LINE>String superClass = null;<NEW_LINE>String classType = null;<NEW_LINE>if (node.getImplementsClause() != null) {<NEW_LINE>implementsList = <MASK><NEW_LINE>}<NEW_LINE>if (node.getExtendsClause() != null) {<NEW_LINE>superClass = (String) mProd...
(List) mProductions.removeLast();
1,165,601
public void logoutUser(final Response.Listener<String> responseListener, final Response.ErrorListener errorListener) {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/user/logout".replaceAll("\\{format\\}", "json");<NEW_LINE>// query params<NEW_LINE>List<Pair> queryPa...
= new ArrayList<Pair>();
262,920
public void exec() throws IOException {<NEW_LINE>final Collection<Path> sources = new Walk(this.sourcesDir.toPath()).includes(this.includeSources).excludes(this.excludeSources);<NEW_LINE>final Unplace unplace <MASK><NEW_LINE>for (final Path file : sources) {<NEW_LINE>final String name = unplace.make(file);<NEW_LINE>if ...
= new Unplace(this.sourcesDir);
1,401,897
private ModelSource _resolveModel(String hint, String backup) throws CatalogModelException {<NEW_LINE>//<NEW_LINE>CatalogModel nr = (CatalogModel) getModel().getModelSource().getLookup(<MASK><NEW_LINE>if (nr == null) {<NEW_LINE>String error = String.format("Cannot resolve file [hint = %s, backup = %s], because no Catal...
).lookup(CatalogModel.class);
471,668
public void onPostExecute(Payload data) {<NEW_LINE>if (mProgressDialog != null) {<NEW_LINE>mProgressDialog.dismiss();<NEW_LINE>}<NEW_LINE>if (data.success) {<NEW_LINE>Timber.i("User successfully logged in!");<NEW_LINE>saveUserInformation((String) data.data[0], (String) data.data[1]);<NEW_LINE>Intent i = MyAccount.this....
getString(R.string.connection_error_message);
360,284
public ResponseEntity<?> signal(@RequestBody Map<?, ?> params) {<NEW_LINE>if (params == null) {<NEW_LINE>return this.generateErrorResponse("Error in body parameters. Cannot be empty", "/signal", HttpStatus.BAD_REQUEST);<NEW_LINE>}<NEW_LINE>log.info("REST API: POST {}/signal {}", RequestMappings.API, params.toString());...
>) params.get("to");
595,935
private void resetIntent(final Account account, Jid with, final RtpEndUserState state, final Set<Media> media) {<NEW_LINE>final Intent intent = new Intent(Intent.ACTION_VIEW);<NEW_LINE>intent.putExtra(EXTRA_ACCOUNT, account.getJid().toEscapedString());<NEW_LINE>if (account.getRoster().getContact(with).getPresences().an...
EXTRA_WITH, with.toEscapedString());
1,737,464
public List<Map<String, Object>> asMaps() {<NEW_LINE>List<Map<String, Object>> servers = new ArrayList<>();<NEW_LINE>for (Map.Entry<ServerUUID, DataContainer> entry : perServer.entrySet()) {<NEW_LINE>ServerUUID serverUUID = entry.getKey();<NEW_LINE>DataContainer ofServer = entry.getValue();<NEW_LINE>Map<String, Object>...
BANNED).orElse(false));
778,730
private static int combinePixels(int rgb1, int rgb2) {<NEW_LINE>// first ARGB<NEW_LINE>int a1 = (rgb1 >> 24) & 0xff;<NEW_LINE>int r1 = (rgb1 >> 16) & 0xff;<NEW_LINE>int g1 = <MASK><NEW_LINE>int b1 = rgb1 & 0xff;<NEW_LINE>// second ARGB<NEW_LINE>int a2 = (rgb2 >> 24) & 0xff;<NEW_LINE>int r2 = (rgb2 >> 16) & 0xff;<NEW_LI...
(rgb1 >> 8) & 0xff;
1,767,976
private TSStatus concludeFinalStatus(PhysicalPlan parentPlan, int totalRowNum, boolean noFailure, boolean isBatchRedirect, boolean isBatchFailure, TSStatus[] subStatus, List<String> errorCodePartitionGroups) {<NEW_LINE>if (parentPlan instanceof InsertMultiTabletPlan && !((InsertMultiTabletPlan) parentPlan).getResults()...
StatusUtils.EXECUTE_STATEMENT_ERROR, MSG_MULTIPLE_ERROR + errorCodePartitionGroups);
1,824,179
private void loadModule(ILibraryResolver resolver, IProcess proc, long textVirtualAddress, long textSize, long dataVirtualAddress, long dataSize, String fileName, String objectName, String moduleName, boolean loadingExecutable) {<NEW_LINE>// .data range will be loaded in core. .text range will be in the module itself.<...
MissingFileModule(proc, moduleName, moduleMemoryRanges);
65,663
public GetUserDefinedFunctionsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetUserDefinedFunctionsResult getUserDefinedFunctionsResult = new GetUserDefinedFunctionsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren...
JsonToken token = context.getCurrentToken();
1,089,137
final CreateOpsItemResult executeCreateOpsItem(CreateOpsItemRequest createOpsItemRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createOpsItemRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<CreateOpsItemReq...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,787,372
private Way combineTwoWaysIfHasPoints(Way w1, Way w2) {<NEW_LINE>boolean combine = true;<NEW_LINE>boolean firstReverse = false;<NEW_LINE>boolean secondReverse = false;<NEW_LINE>long w1f = getFirstId(w1);<NEW_LINE>long w2f = getFirstId(w2);<NEW_LINE>long w1l = getLastId(w1);<NEW_LINE>long w2l = getLastId(w2);<NEW_LINE>i...
().get(ind));
1,416,028
final StartDeviceAuthorizationResult executeStartDeviceAuthorization(StartDeviceAuthorizationRequest startDeviceAuthorizationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startDeviceAuthorizationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
100,459
private void fillPolygon(ShapeFactory.PolygonBuilder b, ArrayNode arr) {<NEW_LINE>ArrayNode coords = (ArrayNode) arr.get(0);<NEW_LINE>for (int i = 0; i < coords.size(); i++) {<NEW_LINE>ArrayNode n = (ArrayNode) coords.get(i);<NEW_LINE>double x = n.get(0).asDouble();<NEW_LINE>double y = n.get(1).asDouble();<NEW_LINE>if ...
pointXYZ(x, y, z);
127,530
public Object processRequest(String testcase, WebClient webClient, HtmlPage startPage, SAMLTestSettings settings, List<validationData> expectations, String step) throws Exception {<NEW_LINE>String thisMethod = "processRequest";<NEW_LINE>msgUtils.printMethodName(thisMethod);<NEW_LINE>Object thePage = null;<NEW_LINE>try ...
testSAMLOIDCServer, testOIDCServer, testAppServer, testIDPServer);
872,989
public void runAssertion(RegressionEnvironment env, String createSchemaEPL, Consumer<NullableObject<String[]>> sender) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy(createSchemaEPL, path);<NEW_LINE>env.compileDeploy("@name('s0') select * from LocalEvent", path).addListener("s0");<NEW...
] { "a", "b" }));
1,719,467
protected Void doInBackground(Void... voids) {<NEW_LINE>try {<NEW_LINE>if (!parseFailed) {<NEW_LINE>JSONArray children = jsonResponse.getJSONObject(JSONUtils.DATA_KEY).getJSONArray(JSONUtils.CHILDREN_KEY);<NEW_LINE>for (int i = 0; i < children.length(); i++) {<NEW_LINE>JSONObject data = children.getJSONObject(i).getJSO...
subredditData = parseSubredditData(data, nsfw);
641,736
final UpdateAppResult executeUpdateApp(UpdateAppRequest updateAppRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAppRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
606,958
public void init(final BExpressionContextWay expctxWay, final BExpressionContextNode expctxNode, final Map<String, String> extraParams) {<NEW_LINE>if (!initDone) {<NEW_LINE>ctxWay = expctxWay;<NEW_LINE>ctxNode = expctxNode;<NEW_LINE>wayIdxMaxspeed = ctxWay.getOutputVariableIndex("maxspeed", false);<NEW_LINE>wayIdxMaxsp...
ctxWay.getOutputVariableIndex("minspeed", false);
623,080
public void run() {<NEW_LINE>Project mainProject = OpenProjectList.getDefault().getMainProject();<NEW_LINE>final Project[] projects = selection(mainProject, context);<NEW_LINE>final String presenterName = <MASK><NEW_LINE>final boolean enabled;<NEW_LINE>if (command == null) {<NEW_LINE>enabled = projects.length == 1 && p...
getPresenterName(name, mainProject, projects);
296,175
public void addSendResultMetric(DispatchProfile currentRecord, String proxyClusterId, boolean result, long sendTime) {<NEW_LINE>Map<String, String> dimensions = new HashMap<>();<NEW_LINE>dimensions.put(SdkMetricItem.KEY_NODE_ID, this.nodeId);<NEW_LINE>dimensions.put(SdkMetricItem.KEY_NODE_IP, this.nodeIp);<NEW_LINE>// ...
metricItem.sendSuccessCount.addAndGet(count);
1,654,558
private Expression processRange(Session session, Type type, Range range, SymbolReference reference) {<NEW_LINE>if (range.isAll()) {<NEW_LINE>return TRUE_LITERAL;<NEW_LINE>}<NEW_LINE>if (isBetween(range)) {<NEW_LINE>// specialize the range with BETWEEN expression if possible b/c it is currently more efficient<NEW_LINE>r...
(!rangeConjuncts.isEmpty());
661,058
public void rollback() {<NEW_LINE>if (!isFailCalled) {<NEW_LINE>throw new CloudRuntimeException("rollback() cannot be called before fail() is called");<NEW_LINE>}<NEW_LINE>isRollbackStart = true;<NEW_LINE>if (rollBackFlows.empty()) {<NEW_LINE>callErrorHandler(true);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (skipRestRoll...
.getClass().getSimpleName();
188,846
private static boolean decodePointVar(byte[] p, int pOff, boolean negate, PointExt r) {<NEW_LINE>byte[] py = <MASK><NEW_LINE>if (!checkPointVar(py)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int x_0 = (py[POINT_BYTES - 1] & 0x80) >>> 7;<NEW_LINE>py[POINT_BYTES - 1] &= 0x7F;<NEW_LINE>F.decode(py, 0, r.y);<NEW_LINE>in...
copy(p, pOff, POINT_BYTES);
658,682
void checkSpecificAccessControl() throws UnauthorizedAccessException {<NEW_LINE>if (userInfo.isAdmin) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String courseId = getNonNullRequestParamValue(Const.ParamsNames.COURSE_ID);<NEW_LINE>CourseAttributes <MASK><NEW_LINE>if (course == null) {<NEW_LINE>throw new EntityNotFoundExcept...
course = logic.getCourse(courseId);
1,310,874
public int trapRainWater(int[][] heightMap) {<NEW_LINE>int m = heightMap.length, n = heightMap[0].length;<NEW_LINE>boolean[][] vis = new boolean[m][n];<NEW_LINE>PriorityQueue<int[]> pq = new PriorityQueue<>((o1, o2) -> o1[0] - o2[0]);<NEW_LINE>for (int i = 0; i < m; ++i) {<NEW_LINE>for (int j = 0; j < n; ++j) {<NEW_LIN...
[i][j] = true;
1,132,446
private void updateFileSizesInLocalFileHeader(SplitOutputStream outputStream, FileHeader fileHeader) throws IOException {<NEW_LINE>if (fileHeader.getUncompressedSize() >= ZIP_64_SIZE_LIMIT) {<NEW_LINE>rawIO.writeLongLittleEndian(longBuff, 0, ZIP_64_SIZE_LIMIT);<NEW_LINE>outputStream.write(longBuff, 0, 4);<NEW_LINE>outp...
ZipException("Unable to skip " + zip64CompressedSizeOffset + " bytes to update LFH");
1,010,487
public void updateUI() {<NEW_LINE>removeAllViews();<NEW_LINE>LayoutInflater inflater = LayoutInflater.from(getContext());<NEW_LINE>// Inflate this data binding layout<NEW_LINE>HamburgerMenuBinding binding = DataBindingUtil.inflate(inflater, R.layout.hamburger_menu, this, true);<NEW_LINE>binding.setLifecycleOwner((VRBro...
binding.list.addOnScrollListener(mScrollListener);
496,692
public void send() {<NEW_LINE>timer.cancel();<NEW_LINE>final RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, uri);<NEW_LINE>XhrConnection.addXsrfHeaderFromCookie(rb);<NEW_LINE>final RequestCallback callback = new RequestCallback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onResponseReceived(Reques...
getLogger().fine("Sending heartbeat request...");
1,810,199
protected int[] transformGeometryToIntValuesSV(ProjectionBlock projectionBlock) {<NEW_LINE>if (_intResults == null) {<NEW_LINE>_intResults = new int[DocIdSetPlanNode.MAX_DOC_PER_CALL];<NEW_LINE>}<NEW_LINE>byte[][] firstValues;<NEW_LINE>byte[][] secondValues;<NEW_LINE>if (_firstArgument == null && _secondArgument == nul...
(), DocIdSetPlanNode.MAX_DOC_PER_CALL)];
392,042
void decode(Decoder decoder, Instruction instruction) {<NEW_LINE>instruction.setCode(code);<NEW_LINE>instruction.setOp0Register(decoder.state_reg + decoder.state_zs_extraRegisterBase + decoder.state_extraRegisterBaseEVEX + Register.ZMM0);<NEW_LINE>instruction.setOp1Register(decoder.state_vvvv + Register.ZMM0);<NEW_LINE...
decoder.state_extraBaseRegisterBaseEVEX + Register.ZMM0);
665,524
public void onLightningStrike(LightningStrikeEvent event) {<NEW_LINE>WorldConfiguration wcfg = <MASK><NEW_LINE>if (!wcfg.disallowedLightningBlocks.isEmpty()) {<NEW_LINE>final Block target = event.getLightning().getLocation().getBlock();<NEW_LINE>Material targetId = target.getType();<NEW_LINE>if (targetId == Material.AI...
getWorldConfig(event.getWorld());
797,409
private void handleContextMenu(JTree tree, int x, int y) {<NEW_LINE>TreePath path = tree.getPathForLocation(x, y);<NEW_LINE>tree.setSelectionPath(path);<NEW_LINE>var node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();<NEW_LINE>if (node == null)<NEW_LINE>return;<NEW_LINE>if (!node.isLeaf()) {<NEW_LINE>t...
.getDefaultToolkit().getSystemClipboard();
1,755,486
SoftwareSystemInstance parse(DeploymentNodeDslContext context, Tokens tokens) {<NEW_LINE>// softwareSystemInstance <identifier> [tags]<NEW_LINE>// softwareSystemInstance <identifier> [deploymentGroup] [tags]<NEW_LINE>if (tokens.hasMoreThan(TAGS_INDEX)) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (!tokens.includes(IDENTIFI...
throw new RuntimeException("Too many tokens, expected: " + GRAMMAR);
1,196,488
private SolrQueryResponse findHits(SavedSearch savedSearch) throws SearchException {<NEW_LINE>// first return dataverses, then datasets<NEW_LINE>String sortField = SearchFields.TYPE;<NEW_LINE>String sortOrder = SortBy.DESCENDING;<NEW_LINE>SortBy sortBy <MASK><NEW_LINE>int paginationStart = 0;<NEW_LINE>boolean dataRelat...
= new SortBy(sortField, sortOrder);
419,185
private void modify(HTTPSamplerBase sampler, String value) {<NEW_LINE>if (isPathExtension()) {<NEW_LINE>String oldPath = sampler.getPath();<NEW_LINE>int indexOfSessionId = oldPath.indexOf(SEMI_COLON + getArgumentName());<NEW_LINE>if (oldPath.contains(SEMI_COLON + getArgumentName())) {<NEW_LINE>int indexOfQuestionMark =...
) + oldPath.substring(indexOfQuestionMark);
1,535,090
public Problem fastCheckParameters() {<NEW_LINE>String builderName = refactoring.getBuilderName();<NEW_LINE>String buildMethodName = refactoring.getBuildMethodName();<NEW_LINE>if (builderName == null || builderName.length() == 0) {<NEW_LINE>return new Problem(true, NbBundle.getMessage(ReplaceConstructorWithBuilderPlugi...
replace(".", "/") + ".java";
1,320,904
private static void initListenerFromZK() throws Exception {<NEW_LINE>LOGGER.info("initListenerFromZK start");<NEW_LINE>ZookeeperProcessListen zkListen = new ZookeeperProcessListen();<NEW_LINE>Set<NotifyService> <MASK><NEW_LINE>// load sharding<NEW_LINE>childService.add(new ShardingZkToXmlListener(zkListen));<NEW_LINE>/...
childService = new HashSet<>();
779,483
final DescribeInputSecurityGroupResult executeDescribeInputSecurityGroup(DescribeInputSecurityGroupRequest describeInputSecurityGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeInputSecurityGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,050,137
protected void printArray(ArrayMemory value, int level, Set<Integer> used) {<NEW_LINE>writeArrayHeader();<NEW_LINE>if (used.contains(value.getPointer())) {<NEW_LINE>printer.write(" *RECURSION*");<NEW_LINE>} else {<NEW_LINE>printer.write(StringUtils.repeat<MASK><NEW_LINE>writeOpen();<NEW_LINE>level += 1;<NEW_LINE>used.a...
(' ', level * PRINT_INDENT));
975,272
private static void checkResult(InstProxyError result) {<NEW_LINE>switch(result) {<NEW_LINE>case INSTPROXY_E_SUCCESS:<NEW_LINE>return;<NEW_LINE>case INSTPROXY_E_INVALID_ARG:<NEW_LINE>throw new LibIMobileDeviceException(result.swigValue(), "INSTPROXY_E_INVALID_ARG");<NEW_LINE>case INSTPROXY_E_PLIST_ERROR:<NEW_LINE>throw...
result.swigValue(), "INSTPROXY_E_RECEIVE_TIMEOUT");
5,720
// private void removeWsdlFolderContents(){<NEW_LINE>// FileObject wsdlFolder = getJAXWSClientSupport().getLocalWsdlFolderForClient(getName(), false);<NEW_LINE>// if(wsdlFolder != null){<NEW_LINE>// FileLock lock = null;<NEW_LINE>//<NEW_LINE>// FileObject[] files = wsdlFolder.getChildren();<NEW_LINE>// for(int i = 0; i...
= new ArrayList<String>();
821,380
final ListClustersResult executeListClusters(ListClustersRequest listClustersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listClustersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,728,039
public void test_getBusinessObject(boolean businessInterface) {<NEW_LINE>Class<?> invokedClass = null;<NEW_LINE>BasicCMTStatefulRemote bObject = null;<NEW_LINE>try {<NEW_LINE>invokedClass = ivContext.getInvokedBusinessInterface();<NEW_LINE>if (businessInterface)<NEW_LINE>assertEquals("getInvokedBusinessInterface return...
svLogger.info("getInvokedBusinessInterface failed as expected: " + isex);
1,514,153
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static java.lang.String name(com.sun.jdi.LocalVariable a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans.modules.debugger.jpda.JD...
jpda.JDIExceptionReporter.report(ex);
400,459
public boolean eIsSet(int featureID) {<NEW_LINE>switch(featureID) {<NEW_LINE>case IArchimatePackage.ARCHIMATE_MODEL__FOLDERS:<NEW_LINE>return folders != null && !folders.isEmpty();<NEW_LINE>case IArchimatePackage.ARCHIMATE_MODEL__NAME:<NEW_LINE>return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);<...
: !FILE_EDEFAULT.equals(file);
1,354,887
private List<FhirVersionIndependentConcept> extractValueSetCodes(IBaseResource theValueSet) {<NEW_LINE>List<FhirVersionIndependentConcept> retVal = new ArrayList<>();<NEW_LINE>RuntimeResourceDefinition vsDef = myContext.getResourceDefinition("ValueSet");<NEW_LINE>BaseRuntimeChildDefinition expansionChild = vsDef.getChi...
getElementDefinition(expansion.getClass());
158,371
protected Status verifyRow(final String key, final Map<String, ByteIterator> cells) {<NEW_LINE>Status verifyStatus = Status.UNEXPECTED_STATE;<NEW_LINE>long startTime = System.nanoTime();<NEW_LINE>double value = 0;<NEW_LINE>long timestamp = 0;<NEW_LINE>final TreeMap<String, String> validationTags = new TreeMap<String, S...
long endTime = System.nanoTime();
399,163
public void computeSuggestions(HintsManager manager, RuleContext context, List<Hint> suggestions, int caretOffset) {<NEW_LINE>int errorType = 0;<NEW_LINE>if (context instanceof HtmlErrorFilterContext) {<NEW_LINE>errorType = ((HtmlErrorFilterContext) context).isOnlyBadging() ? 2 : 1;<NEW_LINE>}<NEW_LINE>HtmlParserResult...
WebPageMetadata.getContentMimeType(result, true);
667,272
public void put(ByteArray key, Versioned<byte[]> value, byte[] transforms) throws VoldemortException {<NEW_LINE>StoreUtils.assertValidKey(key);<NEW_LINE>// Validate the Vector clock<NEW_LINE>VectorClock clock = readVersion();<NEW_LINE>if (clock != null) {<NEW_LINE>if (value.getVersion().compare(clock) == Occurred.BEFOR...
) + " exists for the current file : " + getName());
1,753,003
private void unbindFromJNDI() {<NEW_LINE>try {<NEW_LINE>InitialContext ctx;<NEW_LINE>ctx = new InitialContext();<NEW_LINE>ctx.unbind(nodeConfig.getJNDIName());<NEW_LINE>ctx.unbind(nodeConfig.getCacheManagerJNDIName());<NEW_LINE>ctx.<MASK><NEW_LINE>Logger.getLogger(HazelcastCore.class.getName()).log(Level.INFO, "Hazelca...
unbind(nodeConfig.getCachingProviderJNDIName());
250,181
private Sendung.Zustelldatum createGODeliveryDateOrNull(final DeliveryDate deliveryDate) {<NEW_LINE>if (deliveryDate == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Sendung.Zustelldatum goDeliveryDate = objectFactory.createSendungZustelldatum();<NEW_LINE>final String dateStr = deliveryDate.getDate().format(d...
LocalTime timeTo = deliveryDate.getTimeFrom();
1,053,108
private void checkLangAttributeNorwegian() throws SAXException {<NEW_LINE>String lowerCaseLang = htmlElementLangAttrValue.toLowerCase();<NEW_LINE>String langWarning = "";<NEW_LINE>if (!htmlElementHasLang) {<NEW_LINE>langWarning <MASK><NEW_LINE>} else if (!("no".equals(declaredLangCode) || "nn".equals(declaredLangCode) ...
= "This document appears to be written in Norwegian" + " Consider adding either" + " \u201Clang=\"nn\"\u201D or \u201Clang=\"nb\"\u201D" + " (or variant) to the \u201Chtml\u201D start tag.";
231,710
public void contributeQuarkusConfigToJpaModel(BuildProducer<JpaModelPersistenceUnitContributionBuildItem> jpaModelPuContributions, HibernateOrmConfig hibernateOrmConfig) {<NEW_LINE>Map<String, HibernateOrmConfigPersistenceUnit> persistenceUnitConfigs = new TreeMap<>();<NEW_LINE>if (hibernateOrmConfig.defaultPersistence...
HibernateOrmConfigPersistenceUnit config = entry.getValue();
1,350,377
private Set<IFileStore> loadFilteredItems() {<NEW_LINE>String uris = Platform.getPreferencesService().getString(IndexPlugin.PLUGIN_ID, IPreferenceConstants.FILTERED_INDEX_URIS, null, null);<NEW_LINE>if (StringUtil.isEmpty(uris)) {<NEW_LINE>// Don't return emptySet because we expect to be able to modify the return value...
URI uri = new URI(uriString);
761,831
private void createHandlerTab(final NetworkHandlerDescriptor descriptor) throws DBException {<NEW_LINE>IObjectPropertyConfigurator<DBWHandlerConfiguration> configurator;<NEW_LINE>try {<NEW_LINE>String implName = descriptor.getHandlerType().getImplName();<NEW_LINE>UIPropertyConfiguratorDescriptor configDescriptor = UIPr...
setEnabled(useHandlerCheck.getSelection());
1,393,486
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "theString" };<NEW_LINE>String epl = "@name('s0') select irstream theString from SupportBean#sort(2, intPrimitive)#sort(2, intBoxed) retain-intersection";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>sendEvent(env, "E1...
env, "E2", 2, 9);
344,296
public URLConnection openConnection(URL url) throws IOException {<NEW_LINE>URL embeddedURL = null;<NEW_LINE>URLConnection urlConnection = null;<NEW_LINE>if (url == null) {<NEW_LINE>throw new IOException("JPAURLStreamHandler.openConnection cannot take a null URL argument.");<NEW_LINE>}<NEW_LINE>// Extract the URL embedd...
embeddedURL = WSJPAUrlUtils.extractEmbeddedURL(url);
1,740,176
protected void configureCompileTask(AbstractNativeCompileTask task, final NativeBinarySpecInternal binary, final LanguageSourceSetInternal languageSourceSet) {<NEW_LINE>// Note that the sourceSet is the sourceSet this pre-compiled header will be used with - it's not an<NEW_LINE>// input sourceSet to the compile task.<N...
Project project = task.getProject();
997,051
public Request<GetVocabularyRequest> marshall(GetVocabularyRequest getVocabularyRequest) {<NEW_LINE>if (getVocabularyRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(GetVocabularyRequest)");<NEW_LINE>}<NEW_LINE>Request<GetVocabularyRequest> request = new DefaultRequest<Ge...
request.setHttpMethod(HttpMethodName.POST);
642,895
private static void defineOldStyleBody(SkinnyMethodAdapter mv, final String pathName, final String simpleName, final Class[] paramTypes, final Class returnType, final int baseIndex, final int cacheIndex, final Set<String> nameSet) {<NEW_LINE>final int selfIndex = baseIndex;<NEW_LINE>final int rubyIndex = selfIndex + 1;...
, sig(ThreadContext.class));
845,157
public static JsonArray timeSeriesByTypeToJson(List<Object[]> results) {<NEW_LINE>JsonArrayBuilder jab = Json.createArrayBuilder();<NEW_LINE>Map<String, Long> totals = new HashMap<String, Long>();<NEW_LINE>Map<String, Long> sizes = new HashMap<String, Long>();<NEW_LINE>String curDate = (String) results.get(0)[0];<NEW_L...
job.add(CONTENTTYPE, type);
954,014
public void marshall(RealtimeEndpointInfo realtimeEndpointInfo, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (realtimeEndpointInfo.getPeakRequestsPerSecond() != null) {<NEW_LINE>Integer peakRequestsPerSecond = realtimeEndpointInfo.getPeakRequestsPerSecond();<NEW_LINE>jsonW...
String endpointStatus = realtimeEndpointInfo.getEndpointStatus();
1,812,187
public void onStateChanged(StateChangeEvent stateChangeEvent) {<NEW_LINE>super.onStateChanged(stateChangeEvent);<NEW_LINE>boolean sinkOnloads = false;<NEW_LINE>Profiler.enter("LabelConnector.onStateChanged update content");<NEW_LINE>VLabel widget = getWidget();<NEW_LINE>switch(getState().contentMode) {<NEW_LINE>case PR...
setInnerText(getState().text);
1,578,374
public void startup(Map<String, String> cmdArgs) {<NEW_LINE>// init configuration manager<NEW_LINE>this.configMgr = createConfigurationManager(cmdArgs);<NEW_LINE>log = SystemLogger.getLogger(SystemStarter.class);<NEW_LINE>// System.out to log system<NEW_LINE>initSystemToLog();<NEW_LINE>log.info(this, "<--------------Mi...
.timerWorkManager = this.createTimerWorkManager();
285,335
public static void writeScaledChartAsPNG(OutputStream out, JFreeChart chart, int width, int height, int widthScaleFactor, int heightScaleFactor) throws IOException {<NEW_LINE>Args.nullNotPermitted(out, "out");<NEW_LINE>Args.nullNotPermitted(chart, "chart");<NEW_LINE>double desiredWidth = width * widthScaleFactor;<NEW_L...
, defaultHeight), null, null);
870,516
public void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>Graphics2D g2 = BoofSwingUtil.antialiasing(g);<NEW_LINE>// center the center circle<NEW_LINE>FMatrixRMaj R = distorter.getRotation();<NEW_LINE>// canonical view is +z for pinhole camera<NEW_LINE>v.setTo(0, 0, 1);<NEW_LINE>GeometryMath_F...
g2.setColor(Color.GREEN);
1,845,235
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Enumeration<String> acceptValues = request.getHeaders("Accept");<NEW_LINE>while (acceptValues.hasMoreElements()) {<NEW_LINE>String accept = acceptValues....
= new EventSourceEmitter(eventSource, async);
1,147,392
// Using timed invokeAll where the timeout is much longer than the maxWaitForEnqueue and maxConcurrency is less<NEW_LINE>// than the number of tasks submitted, submit several tasks that start and block. Should be rejected waiting<NEW_LINE>// for a queue position and all in-progress tasks should cancel before returning ...
CountDownLatch continueLatch = new CountDownLatch(1);
1,675,865
private PwmService initService(final PwmServiceEnum pwmServiceEnum) throws PwmUnrecoverableException {<NEW_LINE>final Instant startTime = Instant.now();<NEW_LINE>final PwmService newServiceInstance;<NEW_LINE>final String serviceName = pwmServiceEnum.serviceName(domainID);<NEW_LINE>try {<NEW_LINE>final Class<? extends P...
newServiceInstance.init(pwmApplication, domainID);
717,903
public void observe(final Node node, final NativeObject options) {<NEW_LINE>if (node == null) {<NEW_LINE>throw Context.throwAsScriptRuntimeEx(new IllegalArgumentException("Node is undefined"));<NEW_LINE>}<NEW_LINE>if (options == null) {<NEW_LINE>throw Context.throwAsScriptRuntimeEx(new IllegalArgumentException("Options...
(options.get("attributeOldValue"));
1,587,074
private void InsertData(String user, String pass) throws IOException {<NEW_LINE>try {<NEW_LINE>String path = DB_PATH + DB_NAME;<NEW_LINE>Users = this.openOrCreateDatabase(path, MODE_PRIVATE, null);<NEW_LINE>// get the base64 functionality<NEW_LINE>annoyingObfuscationUtil util = new annoyingObfuscationUtil();<NEW_LINE>S...
findViewById(R.id.etName);
1,803,962
protected SortedMap<Integer, Node> orderedCommentsAndDeclarations(ASTCompilationUnit cUnit) {<NEW_LINE>SortedMap<Integer, Node> itemsByLineNumber = new TreeMap<>();<NEW_LINE>List<ASTImportDeclaration> importDecl = cUnit.findDescendantsOfType(ASTImportDeclaration.class);<NEW_LINE>NodeSortUtils.addNodesToSortedMap(itemsB...
cUnit.findDescendantsOfType(ASTClassOrInterfaceDeclaration.class);
601,107
Object invoke(String methodName, Object... parameters) throws IllegalAccessException, InvocationTargetException {<NEW_LINE>String mid = methodId(methodName, parameters.length);<NEW_LINE>List<Method> <MASK><NEW_LINE>Method method = null;<NEW_LINE>if (methods == null) {<NEW_LINE>// NOI18N<NEW_LINE>throw new IllegalAccess...
methods = methodCache.get(mid);
661,984
private org.subsonic.restapi.User createJaxbUser(org.airsonic.player.domain.User user) {<NEW_LINE>UserSettings userSettings = settingsService.getUserSettings(user.getUsername());<NEW_LINE>org.subsonic.restapi.User result = new org.subsonic.restapi.User();<NEW_LINE>result.setUsername(user.getUsername());<NEW_LINE>result...
setCoverArtRole(user.isCoverArtRole());
879,089
public protobuf.PersistableEnvelope toProtoMessage() {<NEW_LINE>protobuf.UserPayload.Builder builder = protobuf.UserPayload.newBuilder();<NEW_LINE>Optional.ofNullable(accountId).ifPresent(e -> builder.setAccountId(accountId));<NEW_LINE>Optional.ofNullable(paymentAccounts).ifPresent(e -> builder.addAllPaymentAccounts(Pr...
protobuf.PaymentAccount.class)));
678,053
private List<ChunkRange> splitUnevenlySizedChunks(JdbcConnection jdbc, TableId tableId, String splitColumnName, Object min, Object max, int chunkSize) throws SQLException {<NEW_LINE>LOG.info("Use unevenly-sized chunks for table {}, the chunk size is {}", tableId, chunkSize);<NEW_LINE>final List<ChunkRange> splits = new...
.of(chunkStart, null));
1,492,249
public static Histogram load(String name, String file) {<NEW_LINE>try {<NEW_LINE>List<Datum> data = new ArrayList<>();<NEW_LINE>List<String> lines = Files.readAllLines(Paths.get(new File(file).toURI()));<NEW_LINE>// From marker "=== Total ===", jump one line then read all until next blank line<NEW_LINE>boolean processi...
return new Histogram(name, data);
956,140
private static void saveCondition(String condition) {<NEW_LINE>Object[] savedConditions = getSavedConditions();<NEW_LINE>Object[] conditions = null;<NEW_LINE>boolean containsCondition = false;<NEW_LINE>for (int i = 0; i < savedConditions.length; i++) {<NEW_LINE>Object c = savedConditions[i];<NEW_LINE>if (condition.equa...
Object[savedConditions.length + 1];
98,557
public SecretsManagerSecretConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SecretsManagerSecretConfiguration secretsManagerSecretConfiguration = new SecretsManagerSecretConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth...
String currentParentElement = context.getCurrentParentElement();
44,625
private void patchChestImages(int img_id, int tile_top, int tile_bottom, int tile_front, int tile_back, int tile_left, int tile_right) {<NEW_LINE>makeChestSideImage(img_id, tile_front, 14, 14, 1, HandlePos.CENTER);<NEW_LINE>makeChestSideImage(img_id, tile_back, 42, <MASK><NEW_LINE>makeChestSideImage(img_id, tile_left, ...
14, 1, HandlePos.NONE);
971,028
private void addNewViewToWorkGraph(LookUpCameraInfo dbCam, SceneWorkingGraph workGraph, PairwiseImageGraph.View target, int cameraIndexDB, Solution solution) {<NEW_LINE>// Create the camera if it's unknown<NEW_LINE>SceneWorkingGraph.Camera camera = workGraph.cameras.get(cameraIndexDB);<NEW_LINE>if (camera == null) {<NE...
camera = workGraph.addCamera(cameraIndexDB);
1,392,903
protected void hackGetObjectOutputResponse(ServiceModel serviceModel) {<NEW_LINE>Shape getObjectResult = serviceModel.getShapes().get("GetObjectResult");<NEW_LINE>if (getObjectResult == null)<NEW_LINE>return;<NEW_LINE>Shape id2 = new Shape();<NEW_LINE>id2.setName("ObjectId2");<NEW_LINE>id2.setType("string");<NEW_LINE>i...
).put("RequestId", requestIdShapeMember);
99,948
Iterator<Entry<E>> entryIterator() {<NEW_LINE>// AbstractIterator makes this fairly clean, but it doesn't support remove(). To support<NEW_LINE>// remove(), we create an AbstractIterator, and then use ForwardingIterator to delegate to it.<NEW_LINE>final Iterator<Entry<E>> readOnlyIterator = new AbstractIterator<Entry<E...
mapEntry.getKey(), count);
161,795
protected SQLServerTableIndexColumn[] fetchObjectRow(JDBCSession session, SQLServerTableBase parent, SQLServerTableIndex object, JDBCResultSet dbResult) throws SQLException, DBException {<NEW_LINE>long indexColumnId = JDBCUtils.safeGetInt(dbResult, "index_column_id");<NEW_LINE>long columnId = JDBCUtils.safeGetInt(dbRes...
session.getProgressMonitor(), columnId);