idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,787,830
public List<DataFetcherResult<CorpGroup>> batchLoad(final List<String> urns, final QueryContext context) {<NEW_LINE>try {<NEW_LINE>final List<Urn> corpGroupUrns = urns.stream().map(UrnUtils::getUrn).collect(Collectors.toList());<NEW_LINE>final Map<Urn, EntityResponse> corpGroupMap = _entityClient.batchGetV2(CORP_GROUP_...
results = new ArrayList<>();
1,318,795
private static void testErrorCodeWithHeaderJAXRSUsingRowType() {<NEW_LINE>JsonObject requestJson = new JsonObject();<NEW_LINE>requestJson.put("code", 200);<NEW_LINE>requestJson.put("message", "test message");<NEW_LINE>ResponseEntity<MultiResponse200> result = template.postForEntity(SERVER + "/MultiErrorCodeService/erro...
).getMessage(), "test message");
961,227
public void createXmlItem(XmlItem xmlItem) throws ApiException {<NEW_LINE>Object localVarPostBody = xmlItem;<NEW_LINE>// verify the required parameter 'xmlItem' is set<NEW_LINE>if (xmlItem == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'xmlItem' when calling createXmlItem");<NEW_LINE>}<...
localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
1,812,278
public static String formatDownloadStatusDefaultLocale(DownloadManager manager) {<NEW_LINE>int state = manager.getState();<NEW_LINE>String tmp = "";<NEW_LINE>DiskManager dm = manager.getDiskManager();<NEW_LINE>switch(state) {<NEW_LINE>case DownloadManager.STATE_WAITING:<NEW_LINE>tmp = MessageText.getDefaultLocaleString...
tmp = MessageText.getDefaultLocaleString("ManagerItem.stopping");
168,393
public boolean isSkipCandidateFromInvoicing(final I_C_Invoice_Candidate ic, final boolean ignoreInvoiceSchedule) {<NEW_LINE>// 04533: ignore already processed candidates<NEW_LINE>// task 08343: if the ic is processed (after the recent update), then skip it (this logic was in the where clause in C_Invoice_Candidate_Enqu...
.INFO).addLog(msg);
491,912
public boolean valid(WizardDescriptor wizardDescriptor) {<NEW_LINE>// clear the error message<NEW_LINE>wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, null);<NEW_LINE>wizardDescriptor.putProperty(WizardDescriptor.PROP_INFO_MESSAGE, null);<NEW_LINE>// check for the validity of the entered installation ...
= new File(serverRoot, "server/lib/weblogic.jar.pack");
108,385
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1".split(",");<NEW_LINE>env.advanceTime(0);<NEW_LINE>String epl = "@Name('s0') select irstream theString as c0, intPrimitive as c1 from SupportBean#firsttime(10 sec)";<NEW_LINE>env.compileDeployAddListenerMileZero(epl, "s0");<NEW_LINE>env.mile...
{ { "E1", 1 } });
1,216,637
public void customize(ConfigurableServletWebServerFactory container) {<NEW_LINE>LOG.trace("Servlet container is {}", container.getClass().getCanonicalName());<NEW_LINE>// Yes, there is a good reason we do this.<NEW_LINE>// We cannot count on the tomcat classes being on the classpath which will<NEW_LINE>// happen if the...
tomcatESCFInstance = tomcatESCF.cast(container);
999,738
public void deleteFileIfExistsCodeSnippets() {<NEW_LINE>// BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteFileIfExists#String<NEW_LINE>client.deleteFileIfExists(fileName).subscribe(deleted -> {<NEW_LINE>if (deleted) {<NEW_LINE>System.out.println("successfully deleted.");<NEW_LINE>} else {<NEW...
System.out.println("successfully deleted.");
1,791,272
public void initToolsMenu() {<NEW_LINE>Menu addMenu = mainMenuBar.addMenu(3, "_Tools");<NEW_LINE>addMenu.setAccelerator(KeyCombination.keyCombination("SHORTCUT+T"));<NEW_LINE>MenuItem restFulServerMenuItem = new MenuItem("Start LISA+ Virtual Controllers");<NEW_LINE>restFulServerMenuItem.setAccelerator(new KeyCodeCombin...
.R, KeyCodeCombination.CONTROL_DOWN));
50,991
protected CaseElement convertJsonToElement(JsonNode elementNode, JsonNode modelNode, ActivityProcessor processor, BaseElement parentElement, Map<String, JsonNode> shapeMap, CmmnModel cmmnModel, CmmnJsonConverterContext converterContext, CmmnModelIdHelper cmmnModelIdHelper) {<NEW_LINE>Stage stage = new Stage();<NEW_LINE...
.PROPERTY_INCLUDE_IN_STAGE_OVERVIEW, elementNode, true));
1,742,083
public void grantSystemPermission(String user, SystemPermission permission) throws AccumuloSecurityException {<NEW_LINE>try {<NEW_LINE>byte[] permBytes = zooCache.get(ZKUserPath + "/" + user + ZKUserSysPerms);<NEW_LINE>Set<SystemPermission> perms;<NEW_LINE>if (permBytes == null) {<NEW_LINE>perms = new TreeSet<>();<NEW_...
user, SecurityErrorCode.CONNECTION_ERROR, e);
432,954
// snippet-start:[rekognition.java2.list_faces_collection.main]<NEW_LINE>public static void listFacesCollection(RekognitionClient rekClient, String collectionId) {<NEW_LINE>try {<NEW_LINE>ListFacesRequest facesRequest = ListFacesRequest.builder().collectionId(collectionId).maxResults(10).build();<NEW_LINE>ListFacesResp...
"Confidence level there is a face: " + face.confidence());
713,524
public void testCompletedStage() throws Exception {<NEW_LINE>CompletionStage<Integer> cs0 = defaultManagedExecutor.completedStage(86);<NEW_LINE>// Disallow CompletableFuture methods:<NEW_LINE>CompletableFuture<Integer> cf0 = (CompletableFuture<Integer>) cs0;<NEW_LINE>try {<NEW_LINE>cf0.obtrudeValue(860);<NEW_LINE>fail(...
() + ":" + value));
17,836
public void onViewCreated(View root, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(root, savedInstanceState);<NEW_LINE>Context context = getContext();<NEW_LINE>ButterKnife.bind(this, root);<NEW_LINE>_appSettings = new AppSettings(root.getContext());<NEW_LINE>_contextUtils = new ContextUtils(root.g...
), lam.getOrientation());
1,572,767
private static String resolveHostToIpIfNecessary(String host) {<NEW_LINE>String schemaDelimiter = "://";<NEW_LINE>String schema = StringUtils.EMPTY;<NEW_LINE>if (host.contains(schemaDelimiter)) {<NEW_LINE>int index = host.indexOf(schemaDelimiter);<NEW_LINE>schema = host.substring(0, index);<NEW_LINE>host = host.substri...
name).getHostAddress() + port;
623,957
void checkForFaultyBookies() {<NEW_LINE>List<BookieId> faultyBookies = bookieClient.getFaultyBookies();<NEW_LINE>if (faultyBookies.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean isEnabled = false;<NEW_LINE>try {<NEW_LINE>isEnabled = metadataDriver.isHealthCheckEnabled().get();<NEW_LINE>} catch (InterruptedEx...
BookKeeperServerStats.BOOKIE_QUARANTINE_SKIP).inc();
755,097
public void acceptProblem(CategorizedProblem problem, char[] fragmentSource, int fragmentKind) {<NEW_LINE>try {<NEW_LINE>Map<String, Object> attributes = new HashMap<>();<NEW_LINE>attributes.put(IJavaModelMarker.ID, problem.getID());<NEW_LINE>attributes.put(IMarker.CHAR_START, problem.getSourceStart());<NEW_LINE>attrib...
new String(fragmentSource), fragmentKind);
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...
flowExecPair.getId(), results);
147,245
public void onTraversalStart() {<NEW_LINE>if (clusterSize <= 1) {<NEW_LINE>throw new CommandLineException.BadArgumentValue(CLUSTER_SIZE_LONG_NAME, "values lower than 2 are not allowed");<NEW_LINE>}<NEW_LINE>if (maskExtension < 0) {<NEW_LINE>throw new <MASK><NEW_LINE>}<NEW_LINE>if (filterRecordsNotInMask && mask == null...
CommandLineException.BadArgumentValue(MASK_EXTENSION_LONG_NAME, "negative values are not allowed");
63,159
// Uses Kahn's algorithm to do a topological sort and detect cycles<NEW_LINE>public static List<Vertex> sortVertices(Graph g) throws UnexpectedGraphCycleError {<NEW_LINE>if (g.getEdges().size() == 0)<NEW_LINE>return new ArrayList<>(g.getVertices());<NEW_LINE>List<Vertex> sorted = new ArrayList<>(g.getVertices().size())...
traversedEdges = new HashSet<>();
496,996
private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, NativeType>(TypeAlias.class);<NEW_LINE>m.put(<MASK><NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, NativeType.SSHORT);<NEW_LINE>m.put(TypeAli...
TypeAlias.int8_t, NativeType.SCHAR);
1,529,800
private boolean selectFile() {<NEW_LINE>File selectedFile = CompletableFuture.supplyAsync(() -> {<NEW_LINE>FileChooser fChooser = new FileChooser();<NEW_LINE>// TODO: FIX BAD IMPLEMENTATION<NEW_LINE>fChooser.setTitle(MediatorControl.getInstance().getResourceBundle().getString("btn_OpenFile"));<NEW_LINE>// TODO: Conside...
).getBytes(StandardCharsets.UTF_16LE);
1,332,946
public void deleteTask(TaskEntity task, String deleteReason, boolean cascade) {<NEW_LINE>if (!task.isDeleted()) {<NEW_LINE>task.fireEvent(TaskListener.EVENTNAME_DELETE);<NEW_LINE>task.setDeleted(true);<NEW_LINE>CommandContext commandContext = Context.getCommandContext();<NEW_LINE>String taskId = task.getId();<NEW_LINE>...
, task), EngineConfigurationConstants.KEY_PROCESS_ENGINE_CONFIG);
610,680
public void run(final FlowTrigger trigger, Map data) {<NEW_LINE>PrimaryStorageInventory ps = findSMPByHostUuid(context.getInventory().getClusterUuid());<NEW_LINE>if (ps == null) {<NEW_LINE>trigger.next();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>InitKvmHostMsg msg = new InitKvmHostMsg();<NEW_LINE>msg.setHypervisorType(cont...
fail(reply.getError());
152,025
public int doStartTag() throws JspException {<NEW_LINE>HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();<NEW_LINE>// creates wsc/wu<NEW_LINE>Properties ctx = JSPEnv.getCtx(request);<NEW_LINE>WebSessionCtx wsc = WebSessionCtx.get(request);<NEW_LINE>//<NEW_LINE>HttpSession session = pageContext....
menuAll(html, wsc.wstore);
1,435,602
private void runBookies() throws Exception {<NEW_LINE>LOG.info("Starting Bookie(s)");<NEW_LINE>// Create Bookie Servers (B1, B2, B3)<NEW_LINE>if (localBookiesConfigDir.exists() && localBookiesConfigDir.isFile()) {<NEW_LINE>throw new IOException(<MASK><NEW_LINE>}<NEW_LINE>if (!localBookiesConfigDir.exists() && !localBoo...
"Unable to create LocalBookiesConfigDir, since there is a file at " + localBookiesConfigDir.getAbsolutePath());
572,470
private static void init() {<NEW_LINE>getConnection(true);<NEW_LINE>if (jadb == null) {<NEW_LINE>try {<NEW_LINE>new AdbServerLauncher().launch();<NEW_LINE>Debug.log(3, "ADBClient: ADBServer started");<NEW_LINE>getConnection(false);<NEW_LINE>if (jadb != null) {<NEW_LINE>shouldStopServer = true;<NEW_LINE>}<NEW_LINE>} cat...
log(3, "ADBClient: init: attached device: serial(%s)", serial);
921,103
private RexNode convertJoinCondition(Blackboard bb, SqlValidatorNamespace leftNamespace, SqlValidatorNamespace rightNamespace, SqlNode condition, JoinConditionType conditionType, RelNode leftRel, RelNode rightRel) {<NEW_LINE>if (condition == null) {<NEW_LINE>return rexBuilder.makeLiteral(true);<NEW_LINE>}<NEW_LINE>bb.s...
final SqlIdentifier id = (SqlIdentifier) columnName;
472,482
public void run() {<NEW_LINE>if (Double.parseDouble(Current_Version) > Double.parseDouble(Latest_Version)) {<NEW_LINE>try {<NEW_LINE>com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "API Update Failed", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();<NEW_LINE>} catch (Exception...
Snackbar.LENGTH_LONG).show();
352,813
private Wo list(Business business, Wi wi) throws Exception {<NEW_LINE>List<Person> os = business.person().pick(wi.getPersonList());<NEW_LINE>List<String> groupIds = new ArrayList<>();<NEW_LINE>List<String> personIds = new ArrayList<>();<NEW_LINE>List<String> unitIds = new ArrayList<>();<NEW_LINE>for (Person person : os...
add(o.getUnit());
1,094,206
private void postProcessKaifaE0003() {<NEW_LINE>logger.debug("postProcessKaifaE0003");<NEW_LINE>// First check of there is at least one entry of a power failure present<NEW_LINE>// (i.e. date at idx 2 and duration at idx 3)<NEW_LINE>if (cosemValues.size() > FIRST_POWER_FAILURE_DURATION) {<NEW_LINE>CosemDate powerFailur...
setTime(new Date(0));
556,077
private BuiltQuery<?> createTable() {<NEW_LINE>StringBuilder query = new StringBuilder();<NEW_LINE>Keyspace ks = schemaKeyspace();<NEW_LINE>String tableName = cqlName(this.tableName);<NEW_LINE>query.append("CREATE TABLE ");<NEW_LINE>if (ifNotExists) {<NEW_LINE>query.append("IF NOT EXISTS ");<NEW_LINE>} else if (ks.tabl...
addPrimaryKey(query, createColumns, tableName);
1,163,395
private void saveL10N(DataOutputStream output, Hashtable l10n) throws IOException {<NEW_LINE>List keys = new ArrayList();<NEW_LINE>for (Object locale : l10n.keySet()) {<NEW_LINE>Hashtable current = (Hashtable) l10n.get(locale);<NEW_LINE>for (Object key : current.keySet()) {<NEW_LINE>if (!keys.contains(key)) {<NEW_LINE>...
.writeUTF((String) key);
711,932
private Mono<PagedResponse<AttestationInner>> listSinglePageAsync(Integer top, String filter, Context context) {<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 (this...
.nextLink(), null));
157,152
// don't release the lock if this method returns true for success; instead, the caller should<NEW_LINE>// clean up by calling finishUpdatingLogsUsed()<NEW_LINE>@SuppressFBWarnings(value = "UL_UNRELEASED_LOCK", justification = "lock is released by caller calling finishedUpdatingLogsUsed method")<NEW_LINE>public boolean ...
contained = currentLogs.contains(more);
358,665
public void dump(PrintWriter pw) {<NEW_LINE>pw.println("DeviceState:");<NEW_LINE>pw.println(" canStartSystemGesture=" + canStartSystemGesture());<NEW_LINE>pw.println(" systemUiFlags=" + mSystemUiStateFlags);<NEW_LINE>pw.println(" systemUiFlagsDesc=" + QuickStepContract.getSystemUiStateString(mSystemUiStateFlags));<N...
pw.println(" isOneHandedModeEnabled=" + mIsOneHandedModeEnabled);
877,912
final DescribeRefreshSchemasStatusResult executeDescribeRefreshSchemasStatus(DescribeRefreshSchemasStatusRequest describeRefreshSchemasStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeRefreshSchemasStatusRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.Cl...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,073,546
final StopPipelineExecutionResult executeStopPipelineExecution(StopPipelineExecutionRequest stopPipelineExecutionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopPipelineExecutionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
(super.beforeMarshalling(stopPipelineExecutionRequest));
227,968
private JSONObject serviceList(HttpServletRequest request) {<NEW_LINE>String namespaceId = WebUtils.optional(request, CommonParams.NAMESPACE_ID, Constants.DEFAULT_NAMESPACE_ID);<NEW_LINE>JSONObject result = new JSONObject();<NEW_LINE>int page = Integer.parseInt(WebUtils.required(request, "pageNo"));<NEW_LINE>int pageSi...
allIPs().size());
223,047
public void refetchCounterXml(int serverId, final MapPack param) throws Exception {<NEW_LINE>Server server = ServerManager.getInstance().getServer(serverId);<NEW_LINE>if (server == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>Pack p = null;<NEW_LINE>try {<NEW_LINE...
(BlobValue) v1).value);
1,400,224
private void storeFeedDetails() {<NEW_LINE>// Store the facebook and twitter page name in the shared preference from the database<NEW_LINE>storePageName(<MASK><NEW_LINE>storePageName(ConstantStrings.SOCIAL_LINK_TWITTER, ConstantStrings.TWITTER_PAGE_NAME);<NEW_LINE>if (SharedPreferencesUtil.getString(ConstantStrings.FAC...
ConstantStrings.SOCIAL_LINK_FACEBOOK, ConstantStrings.FACEBOOK_PAGE_NAME);
1,270,270
public boolean isBalanced(String str) {<NEW_LINE>if (null == str || ((str.length() % 2) != 0)) {<NEW_LINE>return false;<NEW_LINE>} else {<NEW_LINE>char[] ch = str.toCharArray();<NEW_LINE>for (char c : ch) {<NEW_LINE>if (!(c == '{' || c == '[' || c == '(' || c == '}' || c == ']' || c == ')')) {<NEW_LINE>return false;<NE...
deque = new LinkedList<>();
1,768,406
static HashMap<String, SimpleSet> findPackagesInModules(final ClasspathJrt jrt) {<NEW_LINE>String zipFileName = jrt.zipFilename;<NEW_LINE>HashMap<String, SimpleSet> cache = PackageCache.get(zipFileName);<NEW_LINE>if (cache != null) {<NEW_LINE>return cache;<NEW_LINE>}<NEW_LINE>final HashMap<String, SimpleSet> packagesIn...
this.packageSet.add("");
1,682,167
public RestChannelConsumer doCatRequest(final RestRequest request, final NodeClient client) {<NEW_LINE>final ClusterStateRequest clusterStateRequest = new ClusterStateRequest();<NEW_LINE>clusterStateRequest.clear().nodes(true);<NEW_LINE>clusterStateRequest.local(request.paramAsBoolean("local", clusterStateRequest.local...
Metric.PROCESS.metricName());
796,997
protected void drawFrame(Canvas canvas) {<NEW_LINE>Layout layout = mHTextView.getLayout();<NEW_LINE>int gapIndex = 0;<NEW_LINE>for (int i = 0; i < layout.getLineCount(); i++) {<NEW_LINE>int lineStart = layout.getLineStart(i);<NEW_LINE>int lineEnd = layout.getLineEnd(i);<NEW_LINE>float lineLeft = layout.getLineLeft(i);<...
lineBaseline = layout.getLineBaseline(i);
1,440,692
public ListDatasetGroupsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListDatasetGroupsResult listDatasetGroupsResult = new ListDatasetGroupsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
JsonToken token = context.getCurrentToken();
1,667,749
private void handleMentions(long lastTime, long delay, long presentTime) {<NEW_LINE>if (presentTime - lastTime < delay) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>updateDBLong("lastpoll_mentions", presentTime);<NEW_LINE>String lastID = PhantomBot.instance().getDataStore().GetString("twitter", "", "lastid_mentions");<NEW_LI...
"twitter", "", "lastid_mentions", twitterID);
1,254,119
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>MapActivity mapActivity = requireMapActivity();<NEW_LINE>LayoutInflater themedInflater = UiUtilities.getInflater(mapActivity, nightMode);<NEW_LINE>view = themedInflater.inflate(R.<MASK><NEW_LINE>mapWind...
layout.download_tiles_fragment, container, false);
315,137
final CreateResourceGroupResult executeCreateResourceGroup(CreateResourceGroupRequest createResourceGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createResourceGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateResourceGroup");
1,709,864
private Long retrieveTemplateGuestOsIdFromGuestOsInfo(long templateId, String guestOsType, String guestOsDescription, String minimumHardwareVersion) {<NEW_LINE>VMTemplateVO template = templateDao.findById(templateId);<NEW_LINE>Hypervisor.<MASK><NEW_LINE>if (hypervisor != Hypervisor.HypervisorType.VMware) {<NEW_LINE>ret...
HypervisorType hypervisor = template.getHypervisorType();
1,532,276
final DescribeDRTAccessResult executeDescribeDRTAccess(DescribeDRTAccessRequest describeDRTAccessRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDRTAccessRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Requ...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
897,072
public Mono<Response<List<VirtualMachineExtensionImageInner>>> listTypesWithResponseAsync(String location, String publisherName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (location == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter ...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,386,655
public ClassLoader call() throws Exception {<NEW_LINE>if (clazz == null) {<NEW_LINE>try {<NEW_LINE>clazz = Class.forName(agent.getClassName(), false, loader);<NEW_LINE>} catch (ClassNotFoundException ex) {<NEW_LINE>// the class may not be loaded yet, use the default loader now<NEW_LINE>return loader;<NEW_LINE>}<NEW_LIN...
String f = agent.getField();
583,262
private void reportFixes(Map<Symbol, Tree> fixableTypes, ListMultimap<Symbol, Type> symbolsToType, VisitorState state) {<NEW_LINE><MASK><NEW_LINE>for (Map.Entry<Symbol, List<Type>> entry : asMap(symbolsToType).entrySet()) {<NEW_LINE>Symbol symbol = entry.getKey();<NEW_LINE>List<Type> assignedTypes = entry.getValue();<N...
Types types = state.getTypes();
566,388
static void validateHeaderOverrides(final SAMFileHeader inHeader, final String sampleAlias, final String libraryName) {<NEW_LINE>final List<SAMReadGroupRecord<MASK><NEW_LINE>if (sampleAlias != null || libraryName != null) {<NEW_LINE>boolean allSampleAliasesIdentical = true;<NEW_LINE>boolean allLibraryNamesIdentical = t...
> rgs = inHeader.getReadGroups();
1,647,728
public void updatePageFreeSpace(final OAtomicOperation atomicOperation, final int pageIndex, final int freeSpace) throws IOException {<NEW_LINE>assert pageIndex >= 0;<NEW_LINE>assert freeSpace < ODurablePage.MAX_PAGE_SIZE_BYTES;<NEW_LINE>final int normalizedSpace = freeSpace / NORMALIZATION_INTERVAL;<NEW_LINE>final int...
filledUpTo = getFilledUpTo(atomicOperation, fileId);
798,206
public HoodieWriteMetadata<HoodieData<WriteStatus>> performClustering(final HoodieClusteringPlan clusteringPlan, final Schema schema, final String instantTime) {<NEW_LINE>JavaSparkContext engineContext = HoodieSparkEngineContext.getSparkContext(getEngineContext());<NEW_LINE>// execute clustering for each group async an...
writeMetadata = new HoodieWriteMetadata<>();
1,730,724
private ILogicExpression evaluatePartial(final ExpressionEvaluationContext ctx, final ILogicExpression expr) {<NEW_LINE>logger.trace("Partial evaluating {}", expr);<NEW_LINE>if (expr == null) {<NEW_LINE>throw new ExpressionEvaluationException("Cannot evaluate null expression");<NEW_LINE>} else if (expr.isConstant()) {<...
Object newOperand2 = isOperand2Resolved ? operand2Resolved : operand2;
1,316,146
private static RecyclerView.ViewHolder findSwapTargetItemForGridLayoutManagerInternal2(FindSwapTargetContext fc) {<NEW_LINE>final int spanCount = CustomRecyclerViewUtils.getSpanCount(fc.rv);<NEW_LINE>final int height = fc.rv.getHeight();<NEW_LINE>final int width = fc.rv.getWidth();<NEW_LINE>final int paddingLeft = (fc....
width - paddingLeft - paddingRight) / spanCount;
809,575
void load() {<NEW_LINE><MASK><NEW_LINE>boolean useDefault = (path == null || path.isEmpty());<NEW_LINE>defaultLogoRB.setSelected(useDefault);<NEW_LINE>specifyLogoRB.setSelected(!useDefault);<NEW_LINE>agencyLogoPathField.setEnabled(!useDefault);<NEW_LINE>browseLogosButton.setEnabled(!useDefault);<NEW_LINE>tempCustomFiel...
String path = reportBranding.getAgencyLogoPath();
1,679,475
public void generatePo(ActionRequest request, ActionResponse response) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>List<Long> requestIds = (List<Long>) request.getContext().get("_ids");<NEW_LINE>if (requestIds != null && !requestIds.isEmpty()) {<NEW_LINE>Boolean groupBySupplier = (Boolean) request.getContext().g...
setView(actionViewBuilder.map());
1,684,169
private void generateAccessoryTags() {<NEW_LINE>tag(accessory("belt")).add(knockbackBelt, speedUpBelt, superTravelBelt, travelBelt);<NEW_LINE>tag(accessory("body")).add(balanceCloak, holyCloak, invisibilityCloak, thirdEye, unholyCloak);<NEW_LINE>tag(accessory("charm")).add(<MASK><NEW_LINE>tag(accessory("head")).add(fli...
divaCharm, goddessCharm, monocle, tinyPlanet);
748,611
public void drawTo(Graphic graphic, Style highLight) {<NEW_LINE>int yOffs = 0;<NEW_LINE>for (int p = 0; p < poles; p++) graphic.drawPolygon(new Polygon(false).add(SIZE * 2, p * SIZE * 2 + SIZE).add(SIZE * 2 - SIZE2 / 2, p * SIZE * 2 + SIZE).add(SIZE * 2 - SIZE2 / 2, p * SIZE * 2 + SIZE2 + 2), Style.NORMAL);<NEW_LINE>if...
* p), Style.NORMAL);
877,942
public void addMatchingInterceptors(InterceptableChannel channel, String beanName) {<NEW_LINE>if (LOGGER.isDebugEnabled()) {<NEW_LINE>LOGGER.debug("Applying global interceptors on channel '" + beanName + "'");<NEW_LINE>}<NEW_LINE>List<GlobalChannelInterceptorWrapper> tempInterceptors = new ArrayList<>();<NEW_LINE>this....
channel.addInterceptor(0, channelInterceptor);
1,234,532
private KenaiRepository createKenaiRepository(TeamProject kenaiProject, String displayName, String location) {<NEW_LINE>final URL loc;<NEW_LINE>try {<NEW_LINE>loc = new URL(location);<NEW_LINE>} catch (MalformedURLException ex) {<NEW_LINE>Bugzilla.LOG.log(Level.WARNING, null, ex);<NEW_LINE>return null;<NEW_LINE>}<NEW_L...
location.indexOf("&", idxProductStart);
997,449
public Object instantiateItem(@NonNull ViewGroup container, int position) {<NEW_LINE>ImageView imageView = new ImageView(mContext);<NEW_LINE>// display default city image if no image is present in array<NEW_LINE>if (mImagesArray.size() == 0) {<NEW_LINE>Picasso.with(mContext).load(R.drawable.placeholder_image).error(R.d...
centerCrop().into(imageView);
1,253,362
private void continueGroup(VideoGroup group) {<NEW_LINE>boolean updateInProgress = mScrollAction != null && !mScrollAction.isDisposed();<NEW_LINE>if (updateInProgress) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Log.d(TAG, "continueGroup: start continue group: " + group.getTitle());<NEW_LINE>getController().showProgressBar(...
continueMediaGroup, group.getSection());
1,552,250
public List<ValidateError> validate() {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(this.serviceName, convLabelName("Service Name"));<NEW_LI...
ValidatorFactory.getInstance(Validator.INTEGER);
1,099,015
private void interactive() throws Exception {<NEW_LINE>screens = new Screens(new Framebuffer(config), config.teamName);<NEW_LINE>try {<NEW_LINE>if (nCipher) {<NEW_LINE>NCipher nCipher = new NCipher();<NEW_LINE>nCipher.healthCheck();<NEW_LINE>if (initNvram) {<NEW_LINE>nCipher.initNvram(config.dataSignerKey, screens);<NE...
encode(response.toByteArray());
1,459,742
private Mono<Response<MaintenanceConfigurationInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String resourceName, MaintenanceConfigurationInner configuration, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscr...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,235,249
private String issueReceipt() {<NEW_LINE>MInOut inOut = new MInOut(<MASK><NEW_LINE>if (inOut.isSOTrx() || !inOut.isProcessed() || !(MInOut.DOCSTATUS_Completed.equals(inOut.getDocStatus()) || MInOut.DOCSTATUS_Closed.equals(inOut.getDocStatus())))<NEW_LINE>throw new IllegalArgumentException("Receipt not valid - " + inOut...
getCtx(), m_M_InOut_ID, null);
905,632
Object resolveConstantExpressionValue(Expression expression) {<NEW_LINE>org.eclipse.jdt.internal.compiler.ast.ASTNode node = (org.eclipse.jdt.internal.compiler.ast.ASTNode) this.newAstToOldAst.get(expression);<NEW_LINE>if (node instanceof org.eclipse.jdt.internal.compiler.ast.FieldDeclaration) {<NEW_LINE>node = ((org.e...
valueOf(constant.byteValue());
886,988
public boolean doAlert(AlertConfigWithParams alertConfig, AlertTemplate alertTemplate) throws AlertException {<NEW_LINE>AlertDingTalkParams dingTalkParams = alertConfig.getDingTalkParams();<NEW_LINE>try {<NEW_LINE>// handling contacts<NEW_LINE>List<String> contactList = new ArrayList<>();<NEW_LINE>String contacts = din...
",@", title + " @", "");
241,267
private void createButtonArea() {<NEW_LINE>GridLayoutFactory.fillDefaults().numColumns(2).margins(0, 0).spacing(10, 0).applyTo(buttonComp);<NEW_LINE>Label xButton = new Label(buttonComp, SWT.READ_ONLY);<NEW_LINE>GridDataFactory.fillDefaults().grab(false, false).align(SWT.BEGINNING, SWT<MASK><NEW_LINE>xButton.setText("X...
.CENTER).applyTo(xButton);
1,528,743
public CategoryInfo saveBaseInfo(EntityManagerContainer emc, CategoryInfo categoryInfo) throws Exception {<NEW_LINE>AppInfo appInfo = null;<NEW_LINE>CategoryInfo categoryInfo_tmp = null;<NEW_LINE>if (categoryInfo.getId() == null) {<NEW_LINE>categoryInfo.setId(CategoryInfo.createId());<NEW_LINE>}<NEW_LINE>appInfo = emc....
setCategoryAlias(categoryInfo.getCategoryAlias());
1,844,057
public static void writeMetadataFromString(OFFlowMod.Builder fmb, String inst) {<NEW_LINE>if (inst == null || inst.equals("")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (fmb.getVersion().compareTo(OFVersion.OF_11) < 0) {<NEW_LINE>log.error("Write Metadata Instruction not supported in OpenFlow 1.0");<NEW_LINE>return;<NE...
"All instructions after append: {}", fmb.getInstructions());
1,549,768
public SplitFilter visitOrExpression(OrFilterExpression expression) {<NEW_LINE>SplitFilter lhs = expression.getLeft().accept(this);<NEW_LINE>SplitFilter rhs = expression.getRight().accept(this);<NEW_LINE>// If either the left or right side of the expression require an outer query, the entire<NEW_LINE>// expression must...
outer(combined).build();
71,913
public ImageData filter(Effect effect, RenderState rstate, BaseTransform transform, Rectangle outputClip, ImageData... inputs) {<NEW_LINE>FilterContext fctx = getFilterContext();<NEW_LINE>Reflection reflect = (Reflection) effect;<NEW_LINE>Rectangle inputbounds = inputs[0].getUntransformedBounds();<NEW_LINE>int srcW = i...
irefY2 > srcH) ? irefY2 : srcH;
251,486
private static <T> T deserializeXML(InputStream pluginXML, Class<T> klass) throws JAXBException, XMLStreamException, SAXException {<NEW_LINE>JAXBContext <MASK><NEW_LINE>XMLStreamReader data = XMLInputFactory.newInstance().createXMLStreamReader(pluginXML);<NEW_LINE>final Unmarshaller unmarshaller = ctx.createUnmarshalle...
ctx = JAXBContext.newInstance(klass);
169,926
public Model addProperties(Map<String, String> propertyMap, Model model, ModelElementInstance element) {<NEW_LINE>Mapper mapper = Mapper.of(EntityHelper.getEntityClass(model));<NEW_LINE>for (String property : propertyMap.keySet()) {<NEW_LINE>Object value = element.getAttributeValueNs(BpmnParser.CAMUNDA_BPMN_EXTENSIONS_...
set(model, property, value);
1,351,989
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>JsonObject input = InputParser.parseJsonObjectOrThrowError(req);<NEW_LINE>String refreshToken = InputParser.parseStringOrThrowError(input, "refreshToken", false);<NEW_LINE>String antiCsrfToken = Input...
parseStringOrThrowError(input, "antiCsrfToken", true);
446,971
static void saveAsImage(String path, boolean isOverwrite, String title, String xLabel, String yLabel, String[] keys, Tuple2<String, Double> subTitle, Tuple2<double[], double[]>... curvePoints) throws IOException {<NEW_LINE>File file = new File(path);<NEW_LINE>Preconditions.checkArgument(isOverwrite || !file.exists(), "...
length > 1, true, false);
982,674
public Request<DescribeTextTranslationJobRequest> marshall(DescribeTextTranslationJobRequest describeTextTranslationJobRequest) {<NEW_LINE>if (describeTextTranslationJobRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DescribeTextTranslationJobRequest)");<NEW_LINE>}<NEW_L...
request.setHttpMethod(HttpMethodName.POST);
395,900
private void startEngine(AbstractThreadGroup[] threadGroupsToRun, RunMode runMode) {<NEW_LINE><MASK><NEW_LINE>HashTree testTree = gui.getTreeModel().getTestPlan();<NEW_LINE>// We need to make this conversion before removing any Thread Group as 1 thread Group running may<NEW_LINE>// reference another one (not running) u...
GuiPackage gui = GuiPackage.getInstance();
342,622
protected void createSheet(CutsInfo xCuts, SheetInfo sheetInfo) {<NEW_LINE>startPage = true;<NEW_LINE>currentSheetPageScale = sheetInfo.sheetPageScale;<NEW_LINE>currentSheetFirstPageNumber = sheetInfo.sheetFirstPageNumber;<NEW_LINE>currentSheetName = sheetInfo.sheetName;<NEW_LINE>firstSheetName = firstSheetName == null...
XlsxDrawingHelper(jasperReportsContext, drawingWriter, drawingRelsHelper);
570,844
protected void init() throws FailStoreException {<NEW_LINE>try {<NEW_LINE>options = new Options();<NEW_LINE>options.setCreateIfMissing(true).setWriteBufferSize(8 * SizeUnit.KB).setMaxWriteBufferNumber(3).setMaxBackgroundCompactions(10).setCompressionType(CompressionType.SNAPPY_COMPRESSION).setCompactionStyle(Compaction...
.KB).setBlockCacheCompressedNumShardBits(10);
1,383,624
private Mono<Response<EnvironmentListResponseInner>> listByResourceGroupWithResponseAsync(String resourceGroupName) {<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 ...
)).readOnly()));
523,223
public void show() {<NEW_LINE>wizard.setTitle(MessageText.getString("installPluginsWizard.installMode.title"));<NEW_LINE>wizard.setErrorMessage("");<NEW_LINE>Composite rootPanel = wizard.getPanel();<NEW_LINE>GridLayout layout = new GridLayout();<NEW_LINE>layout.numColumns = 1;<NEW_LINE>rootPanel.setLayout(layout);<NEW_...
"mode", new Integer(MODE_SHARED));
1,300,974
public void marshall(ReplicationTask replicationTask, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (replicationTask == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(replicationTask.getReplicationTaskIdent...
replicationTask.getMigrationType(), MIGRATIONTYPE_BINDING);
1,277,104
protected CommandExecutionResult executeArg(ActivityDiagram diagram, LineLocation location, RegexResult arg) throws NoSuchColorException {<NEW_LINE>final IEntity entity1 = getEntity(diagram, arg, true);<NEW_LINE>if (entity1 == null) {<NEW_LINE>return CommandExecutionResult.error("No such activity");<NEW_LINE>}<NEW_LINE...
arrowBody1 + arrowDirection + arrowBody2 + ">");
1,804,795
public static UserQosInfo parseGetUserQosInfo(InputStream responseBody) throws ResponseParseException {<NEW_LINE>try {<NEW_LINE>Element root = getXmlRootElement(responseBody);<NEW_LINE>UserQosInfo userQosInfo = new UserQosInfo();<NEW_LINE>userQosInfo.setRegion(root.getChildText("Region"));<NEW_LINE>userQosInfo.setTotal...
root.getChildText("IntranetDownloadBandwidth")));
901,575
public static IRubyObject pack_sockaddr_in(ThreadContext context, int port, String host) {<NEW_LINE>ByteArrayOutputStream bufS = new ByteArrayOutputStream();<NEW_LINE>try {<NEW_LINE>DataOutputStream ds = new DataOutputStream(bufS);<NEW_LINE>try {<NEW_LINE>if (host != null && host.length() == 0) {<NEW_LINE><MASK><NEW_LI...
writeSockaddrHeader(AddressFamily.AF_INET, ds);
25,723
/*<NEW_LINE>* Create usage events for existing port forwarding rules<NEW_LINE>*/<NEW_LINE>private void createPortForwardingEvents(Connection conn) {<NEW_LINE>s_logger.debug("Creating Port Forwarding usage events");<NEW_LINE>try (PreparedStatement pstmt = conn.prepareStatement("SELECT fw.account_id, ip.data_center_id, f...
throw new CloudRuntimeException("Failed to add port forwarding usage events due to:", e);
1,209,048
private boolean processUnrecoverableException(final HttpServletRequest req, final HttpServletResponse resp, final PwmDomain pwmDomain, final PwmRequest pwmRequest, final PwmUnrecoverableException e) throws IOException {<NEW_LINE>switch(e.getError()) {<NEW_LINE>case ERROR_DIRECTORY_UNAVAILABLE:<NEW_LINE>LOGGER.fatal(pwm...
incrementStat(pwmRequest, Statistic.LDAP_UNAVAILABLE_COUNT);
615,807
public static void openInstallWizard(OperationContainer<InstallSupport> container, boolean runInBackground) {<NEW_LINE>if (container == null) {<NEW_LINE>// NOI18N<NEW_LINE>throw new IllegalArgumentException("OperationContainer cannot be null.");<NEW_LINE>}<NEW_LINE>List<OperationContainer.OperationInfo<InstallSupport>>...
throw new IllegalArgumentException("OperationContainer cannot contain invalid elements but " + invalid);
565,026
public void sendNotification(Check check, Subscription subscription, List<Alert> alerts) throws NotificationFailedException {<NEW_LINE>String token = seyrenConfig.getSlackToken();<NEW_LINE>String channel = subscription.getTarget();<NEW_LINE>String username = seyrenConfig.getSlackUsername();<NEW_LINE>String iconUrl = se...
new BasicNameValuePair("icon_url", iconUrl));
119,384
public Object visitMemberSelect(MemberSelectTree node, Object p) {<NEW_LINE>if (wc.getTrees().getElement(new TreePath(getCurrentPath(), node.getExpression())) != varElement) {<NEW_LINE>return super.visitMemberSelect(node, p);<NEW_LINE>}<NEW_LINE>Element target = wc.getTrees().getElement(getCurrentPath());<NEW_LINE>if (...
super.visitMemberSelect(node, p);
1,577,363
protected String[] processStringArray(String name, String expression, boolean immediateOnly, boolean mask) {<NEW_LINE>final String methodName = "processStringArray";<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(tc, methodName, new Object[] { name, (expression == null) ? ...
IllegalArgumentException("Expected '" + name + "' to evaluate to a String[] value.");
184,991
JobExecution createJobExecutionFromResultSet(ResultSet rs, int rowNum) throws SQLException {<NEW_LINE>Long id = rs.getLong(1);<NEW_LINE>JobExecution jobExecution;<NEW_LINE>JobParameters jobParameters = getJobParameters(id);<NEW_LINE>JobInstance jobInstance = new JobInstance(rs.getLong(10), rs.getString(11));<NEW_LINE>j...
rs.getString(4)));