idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
206,845
protected void initFactoidCorpus() {<NEW_LINE>// question analysis<NEW_LINE>Ontology wordNet = new WordNet();<NEW_LINE>// - dictionaries for term extraction<NEW_LINE>QuestionAnalysis.clearDictionaries();<NEW_LINE>QuestionAnalysis.addDictionary(wordNet);<NEW_LINE>// - ontologies for term expansion<NEW_LINE>QuestionAnaly...
.addQueryGenerator(new PredicateG());
886,538
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String epl = "@public create schema MyTypeZero as (col1 int, col2 string);\n" + "@public create schema MyTypeOne as (col1 int, col3 string, col4 int);\n" + "@public create schema MyTypeTwo as (col1 int, col4 boole...
model = env.eplToModel(createText);
1,433,675
private MInvoiceLine[] createInvoiceLines(MRMA rma, MInvoice invoice) {<NEW_LINE>ArrayList<MInvoiceLine> invLineList = new ArrayList<>();<NEW_LINE>MRMALine[] rmaLines = rma.getLines(true);<NEW_LINE>for (MRMALine rmaLine : rmaLines) {<NEW_LINE>if (rmaLine.getM_InOutLine_ID() == 0) {<NEW_LINE>throw new IllegalStateExcept...
", Line = " + rmaLine.getLine());
226,154
private void addFriendsMenu(Menu menu) {<NEW_LINE>final Menu friends_menu = new Menu(menu.getShell(), SWT.DROP_DOWN);<NEW_LINE>MenuItem friends_menu_item = new MenuItem(menu, SWT.CASCADE);<NEW_LINE>friends_menu_item.setMenu(friends_menu);<NEW_LINE>friends_menu_item.setText(MessageText.getString("Views.plugins.azbuddy.t...
MenuItem(friends_menu, SWT.PUSH);
1,348,252
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>binding = DataBindingUtil.inflate(inflater, R.layout.auto_check_in_fragment, container, false);<NEW_LINE>autoCheckInViewModel = ViewModelProviders.of(getActivity(), viewModelFactory).get(AutoCheckInViewModel.cla...
binding.autoCheckInAllCheckbox.isChecked());
1,413,031
public static String createDotGraph(Abstraction absStart, boolean printNeighbors) {<NEW_LINE>IdentityHashMap<Abstraction, Integer> absToId = new IdentityHashMap<>();<NEW_LINE>ArrayDeque<Abstraction> workQueue = new ArrayDeque<>();<NEW_LINE>StringBuilder sbNodes = new StringBuilder();<NEW_LINE>StringBuilder sbEdges = ne...
("|<n%d> n%d", i, i));
219,810
protected void createResponse(Values ret, Reply reply, Version version, byte[] payload) {<NEW_LINE>int[] eCodes = new int[reply.getNumErrors()];<NEW_LINE>String[] eMessages = new <MASK><NEW_LINE>String[] eServices = new String[reply.getNumErrors()];<NEW_LINE>for (int i = 0; i < reply.getNumErrors(); ++i) {<NEW_LINE>Err...
String[reply.getNumErrors()];
270,155
public void serializeWithType(AWSCredentialsProvider credentialsProvider, JsonGenerator jsonGenerator, SerializerProvider serializers, TypeSerializer typeSerializer) throws IOException {<NEW_LINE>// BEAM-11958 Use deprecated Jackson APIs to be compatible with older versions of jackson<NEW_LINE>typeSerializer.writeTypeP...
jsonGenerator.writeStringField(CREDENTIALS_FILE_PATH, filePath);
1,832,673
public String toStringDetail() {<NEW_LINE>StringBuffer sb = new StringBuffer(m_apps_host);<NEW_LINE>sb.append("{").append(m_db_host).append("-").append(m_db_name).append("-").append(m_db_uid).append("}");<NEW_LINE>//<NEW_LINE>Connection conn = getConnection(true, Connection.TRANSACTION_READ_COMMITTED);<NEW_LINE>if (con...
" - " + dbmd.getDatabaseProductVersion());
1,030,141
public static String replace(@NonNls @Nonnull final String text, @NonNls @Nonnull final String oldS, @NonNls @Nonnull final String newS, final boolean ignoreCase) {<NEW_LINE>if (text.length() < oldS.length())<NEW_LINE>return text;<NEW_LINE>StringBuilder newText = null;<NEW_LINE>int i = 0;<NEW_LINE>while (i < text.lengt...
? newText.toString() : "";
1,373,605
private void initializeEjbInterfaceMethods() throws Exception {<NEW_LINE>ejbIntfMethods = new Method[EJB_INTF_METHODS_LENGTH];<NEW_LINE>if (isRemote) {<NEW_LINE>ejbIntfMethods[EJBHome_remove_Handle] = EJBHome.class.getMethod("remove", javax.ejb.Handle.class);<NEW_LINE>ejbIntfMethods[EJBHome_remove_Pkey] = EJBHome.class...
class.getMethod("getEJBMetaData", NO_PARAMS);
21,034
public <V1, V2, V3, V4, V5> Promise<MultipleResultsN<V1, V2, V3, V4, V5>, OneReject<Throwable>, MasterProgress> when(DeferredFutureTask<V1, ?> taskV1, DeferredFutureTask<V2, ?> taskV2, DeferredFutureTask<V3, ?> taskV3, DeferredFutureTask<V4, ?> taskV4, DeferredFutureTask<V5, ?> taskV5, DeferredFutureTask<?, ?> task6, D...
?> promise4 = when(taskV4);
312,794
private LayoutInterval findIntervalToExtend(LayoutInterval parent, int dimension, int alignment) {<NEW_LINE>int d = alignment == LEADING ? -1 : 1;<NEW_LINE>int count = parent.getSubIntervalCount();<NEW_LINE>int idx = alignment <MASK><NEW_LINE>boolean atBorder = true;<NEW_LINE>boolean gap = false;<NEW_LINE>while (idx >=...
== LEADING ? count - 1 : 0;
1,528,364
private void logXmlExtraProblem(CategorizedProblem problem, int globalErrorCount, int localErrorCount) {<NEW_LINE>final int sourceStart = problem.getSourceStart();<NEW_LINE>final int sourceEnd = problem.getSourceEnd();<NEW_LINE>boolean isError = problem.isError();<NEW_LINE>HashMap<String, Object> parameters = new HashM...
.INFO : Logger.WARNING));
57,731
protected void internalReceiveCommand(String itemName, Command command) {<NEW_LINE>if (gpio != null) {<NEW_LINE>try {<NEW_LINE>if (registryLock.readLock().tryLock(REGISTRYLOCK_TIMEOUT, REGISTRYLOCK_TIMEOUT_UNITS)) {<NEW_LINE>try {<NEW_LINE>GPIOPin gpioPin = (GPIOPin) registry.get(itemName);<NEW_LINE>if (gpioPin != null...
.readLock().unlock();
144,384
public boolean execute(Object object) throws ContractExeException {<NEW_LINE>TransactionResultCapsule ret = (TransactionResultCapsule) object;<NEW_LINE>if (Objects.isNull(ret)) {<NEW_LINE>throw new RuntimeException(ActuatorConstant.TX_RESULT_NULL);<NEW_LINE>}<NEW_LINE>long fee = calcFee();<NEW_LINE><MASK><NEW_LINE>Dyna...
AccountStore accountStore = chainBaseManager.getAccountStore();
322,344
private Item parseUserInput(String grammar, String defaultIndex, String wordData, Language language, boolean allowNullItem) {<NEW_LINE>Query.Type parseAs = <MASK><NEW_LINE>Parser parser = ParserFactory.newInstance(parseAs, environment);<NEW_LINE>// perhaps not use already resolved doctypes, but respect source and restr...
Query.Type.getType(grammar);
466,125
public static String linkToClass(String className, String memberName, String memberType, boolean useNew) {<NEW_LINE>if (!useNew && HTMLReportGenerator.oldDocPrefix == null) {<NEW_LINE>// No link possible<NEW_LINE>return "<tt>" + className + "</tt>";<NEW_LINE>}<NEW_LINE>API api = oldAPI_;<NEW_LINE>String prefix = HTMLRe...
println("Warning: class " + className + " not found in the old API when creating Javadoc link");
1,433,843
protected NodesReloadSecureSettingsResponse.NodeResponse nodeOperation(NodeRequest nodeReloadRequest) {<NEW_LINE>try (KeyStoreWrapper keystore = KeyStoreWrapper.load(environment.configFile())) {<NEW_LINE>// reread keystore from config file<NEW_LINE>if (keystore == null) {<NEW_LINE>return new NodesReloadSecureSettingsRe...
), new IllegalStateException("Keystore is missing"));
1,161,853
public static void renderOutlines(Runnable draw, boolean entities, int width, float fillOpacity, ShapeMode shapeMode) {<NEW_LINE>WorldRenderer worldRenderer = mc.worldRenderer;<NEW_LINE>WorldRendererAccessor wra = (WorldRendererAccessor) worldRenderer;<NEW_LINE>Framebuffer fbo = worldRenderer.getEntityOutlinesFramebuff...
outlinesShader.set("u_Width", width);
896,568
private void createNutchUrls() throws IOException, URISyntaxException {<NEW_LINE>log.info("Creating nutch urls ...");<NEW_LINE>JobConf job = new JobConf(NutchData.class);<NEW_LINE>Path urls = new Path(options.getWorkPath(), URLS_DIR_NAME);<NEW_LINE>Utils.checkHdfsPath(urls);<NEW_LINE>String jobname = "Create nutch urls...
job.setMapOutputKeyClass(LongWritable.class);
1,828,893
public static DescribeScdnServiceResponse unmarshall(DescribeScdnServiceResponse describeScdnServiceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeScdnServiceResponse.setRequestId(_ctx.stringValue("DescribeScdnServiceResponse.RequestId"));<NEW_LINE>describeScdnServiceResponse.setChangingAffectTime(_ctx.stringVa...
(_ctx.stringValue("DescribeScdnServiceResponse.ProtectTypeValue"));
988,928
public Observable<ServiceResponse<TrendingTopics>> trendingWithServiceResponseAsync(TrendingOptionalParameter trendingOptionalParameter) {<NEW_LINE>final String acceptLanguage = trendingOptionalParameter != null ? trendingOptionalParameter.acceptLanguage() : null;<NEW_LINE>final String userAgent = trendingOptionalParam...
? trendingOptionalParameter.setLang() : null;
702,608
public GATKReportTable generateReportTable(final String covariateNames) {<NEW_LINE>GATKReportTable argumentsTable;<NEW_LINE>argumentsTable = new GATKReportTable("Arguments", "Recalibration argument collection values used in this run", 2, GATKReportTable.Sorting.SORT_BY_COLUMN);<NEW_LINE>argumentsTable.addColumn("Argume...
argumentsTable.addRowID("recalibration_report", true);
1,843,448
private boolean doConvertPatterns() throws MalformedPatternException {<NEW_LINE>final String[] regexpPatterns = getRegexpPatterns();<NEW_LINE>final List<String> converted = new ArrayList<>();<NEW_LINE>final Pattern multipleExtensionsPatternPattern = compilePattern("\\.\\+\\\\\\.\\((\\w+(?:\\|\\w+)*)\\)");<NEW_LINE>fina...
matcher = singleExtensionPatternPattern.matcher(regexpPattern);
383,501
protected void layoutGrid(PrintElementIndex parentElementIndex, List<JRPrintElement> elements) {<NEW_LINE>boolean createXCuts = (xCuts == null);<NEW_LINE>xCuts = createXCuts ? new CutsInfo() : xCuts;<NEW_LINE>yCuts = nature.isIgnoreLastRow() ? new CutsInfo(0) : new CutsInfo(height);<NEW_LINE>if (// FIXMEXLS left and ri...
elements, offsetX, offsetY, createXCuts);
630,444
static IkePhase1Policy toIkePhase1Policy(@Nonnull IsakmpKey isakmpKey, @Nonnull CiscoXrConfiguration oldConfig, @Nonnull IkePhase1Key ikePhase1KeyFromIsakmpKey) {<NEW_LINE>IkePhase1Policy ikePhase1Policy = <MASK><NEW_LINE>ikePhase1Policy.setIkePhase1Proposals(oldConfig.getIsakmpPolicies().values().stream().filter(isakm...
new IkePhase1Policy(getIsakmpKeyGeneratedName(isakmpKey));
1,628,187
static int lastArgMatchesVarg(final Parameter[] parameters, final ClassNode... argumentTypes) {<NEW_LINE>if (!isVargs(parameters))<NEW_LINE>return -1;<NEW_LINE>int lastParamIndex = parameters.length - 1;<NEW_LINE>if (lastParamIndex == argumentTypes.length)<NEW_LINE>return 0;<NEW_LINE>// two cases remain:<NEW_LINE>// th...
ClassNode elementType = arrayType.getComponentType();
1,368,634
public void layout() {<NEW_LINE>if (actor == null)<NEW_LINE>return;<NEW_LINE>float padLeft = this.padLeft.get(this), padBottom = this.padBottom.get(this);<NEW_LINE>float containerWidth = getWidth() - <MASK><NEW_LINE>float containerHeight = getHeight() - padBottom - padTop.get(this);<NEW_LINE>float minWidth = this.minWi...
padLeft - padRight.get(this);
959,144
private void calculateXForward() {<NEW_LINE>String forwardedSsl = delegate.getHeader(X_FORWARDED_SSL);<NEW_LINE>boolean isForwardedSslOn = forwardedSsl != null && forwardedSsl.equalsIgnoreCase("on");<NEW_LINE>String protocolHeader = delegate.getHeader(X_FORWARDED_PROTO);<NEW_LINE>if (protocolHeader != null) {<NEW_LINE>...
",")[0], port);
296,293
public static void write(NodeLibrary library, StreamResult streamResult, File file) {<NEW_LINE>try {<NEW_LINE>DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();<NEW_LINE>Document doc = builder.newDocument();<NEW_LINE>// Build the header.<NEW_LINE>Element rootElement = doc.createElement...
library.getFunctionRepository(), file);
92,731
public static synchronized void registerCounter(int methodId, int mean) {<NEW_LINE>if (counters.length <= methodId) {<NEW_LINE>int newLen = methodId * 2;<NEW_LINE>counters = <MASK><NEW_LINE>rLocks = Arrays.copyOf(rLocks, newLen);<NEW_LINE>means = Arrays.copyOf(means, newLen);<NEW_LINE>origMeans = Arrays.copyOf(means, n...
Arrays.copyOf(counters, newLen);
357,418
public void onPlayStart(int code) {<NEW_LINE>switch(code) {<NEW_LINE>case V2TXLIVE_OK:<NEW_LINE>startLoadingAnimation();<NEW_LINE>break;<NEW_LINE>case V2TXLIVE_ERROR_INVALID_PARAMETER:<NEW_LINE>Toast.makeText(mContext, R.string.liveplayer_warning_res_url_invalid, Toast.LENGTH_SHORT).show();<NEW_LINE>break;<NEW_LINE>def...
mImageRoot.setVisibility(View.VISIBLE);
1,089,698
protected Control createDialogArea(Composite parent) {<NEW_LINE>Composite compositeTop = (Composite) super.createDialogArea(parent);<NEW_LINE>String titleMsg;<NEW_LINE>if (confirmPassword)<NEW_LINE>titleMsg = Messages.passwordChangeTitle;<NEW_LINE>else if (passwordChange)<NEW_LINE>titleMsg = Messages.messageLoginChange...
SWT.CHECK | SWT.RIGHT);
33,785
protected TimerDeclarationImpl parseTimer(Element timerEventDefinition, ActivityImpl timerActivity, String jobHandlerType) {<NEW_LINE>// TimeDate<NEW_LINE>TimerDeclarationType type = TimerDeclarationType.DATE;<NEW_LINE>Expression expression = parseExpression(timerEventDefinition, "timeDate");<NEW_LINE>// TimeCycle<NEW_...
) timerActivity.getProperty(PROPERTYNAME_JOB_PRIORITY));
735,127
public HelidonServiceLoader<T> build() {<NEW_LINE>// first merge the lists together<NEW_LINE>List<ServiceWithPriority<T>> services = new LinkedList<>(customServices);<NEW_LINE>if (useSystemServiceLoader) {<NEW_LINE>Set<String> <MASK><NEW_LINE>if (replaceImplementations) {<NEW_LINE>customServices.stream().map(ServiceWit...
uniqueImplementations = new HashSet<>();
23,491
public Map<String, Double> extract(String json) {<NEW_LINE>Map<String, Object> parsed;<NEW_LINE>try {<NEW_LINE>parsed = JsonConverter.fromJson(json, new TypeReference<HashMap<String, Object>>() {<NEW_LINE>}.getType());<NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new RuntimeException(String.format("Failed to deseria...
probMap = new HashMap<>();
1,012,533
public byte[] decrypt(final byte[] ciphertext, final byte[] contextInfo) throws /* unused */<NEW_LINE>GeneralSecurityException {<NEW_LINE>if (contextInfo != null) {<NEW_LINE>throw new GeneralSecurityException("contextInfo must be null because it is unused");<NEW_LINE>}<NEW_LINE>if (ciphertext.length < WebPushConstants....
decrypt(cek, nonce, payload);
749,892
public void detectOrphanChannels(List<ChannelBuildItem> channels, BuildProducer<OrphanChannelBuildItem> builder) {<NEW_LINE>Map<String, ChannelBuildItem> inc = new HashMap<>();<NEW_LINE>Map<String, ChannelBuildItem> out = new HashMap<>();<NEW_LINE>for (ChannelBuildItem channel : channels) {<NEW_LINE>if (channel.getDire...
removeAll(inc.keySet());
999,216
private boolean pruneProductConfig() {<NEW_LINE>log.fine("In pruneProductConfig");<NEW_LINE>boolean retVal = false;<NEW_LINE>DefaultMutableTreeNode rootProductConfig = this.m_RadioButtonTreeCellRenderer.root;<NEW_LINE>Enumeration children = rootProductConfig.breadthFirstEnumeration();<NEW_LINE>log.fine("About to prune"...
(nodeUserObject) child.getUserObject();
1,624,535
public void voidCommand(TelCommand telCommand) throws Throwable {<NEW_LINE>String[] args = telCommand.getCommandArgs();<NEW_LINE>String argsJoin = StringUtils.join(args, "");<NEW_LINE>argsJoin = argsJoin.replace("\\s+", " ");<NEW_LINE>args = argsJoin.split("=");<NEW_LINE>//<NEW_LINE>if (args.length > 0) {<NEW_LINE>Stri...
args[1].trim();
1,220,429
public static HookInfoPatch toInnerForUpdate(ClientLogger logger, NotificationHook notificationHook) {<NEW_LINE>if (notificationHook instanceof EmailNotificationHook) {<NEW_LINE>EmailNotificationHook emailHook = (EmailNotificationHook) notificationHook;<NEW_LINE>EmailHookInfoPatch innerEmailHook = new EmailHookInfoPatc...
().setToList(emailsToAlert));
227,252
private static // It's lying; we need the "redundant" casts (as of 2014-09-08)<NEW_LINE>Object buildDependencyTree(SemanticGraph graph) {<NEW_LINE>if (graph != null) {<NEW_LINE>return // Roots<NEW_LINE>Stream.// Roots<NEW_LINE>concat(graph.getRoots().stream().map((IndexedWord root) -> (Consumer<Writer>) dep -> {<NEW_LI...
getDependent().index());
1,129,226
// snippet-start:[sagemaker.java2.transform_job.main]<NEW_LINE>public static void transformJob(SageMakerClient sageMakerClient, String s3Uri, String s3OutputPath, String modelName, String transformJobName) {<NEW_LINE>try {<NEW_LINE>TransformS3DataSource s3DataSource = TransformS3DataSource.builder().s3DataType("S3Prefi...
jobResponse = sageMakerClient.createTransformJob(jobRequest);
420,259
public static void main(String[] args) throws IOException, NoSuchAlgorithmException {<NEW_LINE>String buildName = "build-test";<NEW_LINE>String buildNumber = "2";<NEW_LINE>String artifactoryURL = "http://localhost:8081/artifactory";<NEW_LINE>// optional. Only used when deploying the actual artifacts (in addition to the...
("Java-example-agent")).build();
1,474,491
protected void initNode(TranspilationHandler transpilationHandler) throws Exception {<NEW_LINE>ProcessUtil.initNode();<NEW_LINE>File initFile = new File(workingDir, ".node-init");<NEW_LINE>boolean initialized = initFile.exists();<NEW_LINE>if (!initialized) {<NEW_LINE>ProcessUtil.runCommand(ProcessUtil.NODE_COMMAND, cur...
logger.info("node version: " + currentNodeVersion);
777,256
public void testCreateMapMessage_TCP_SecOff(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>String name = "Valuepair";<NEW_LINE>long value = 22222222;<NEW_LINE>JMSContext jmsContext = jmsQCFTCP.createContext();<NEW_LINE>emptyQueue(jmsQCFTCP, queue);<NEW_LINE>MapMessage msg = jmsCon...
msg.setLong(name, value);
252,513
public void marshall(GlacierJobDescription glacierJobDescription, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (glacierJobDescription == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(glacierJobDescription...
glacierJobDescription.getSNSTopic(), SNSTOPIC_BINDING);
117,013
public static void main(String[] args) throws Exception {<NEW_LINE>if (args.length < 1)<NEW_LINE>Utils.croak("USAGE: java " + HdfsFetcher.class.getName() + " url [keytab-location kerberos-username hadoop-config-path [destDir]]");<NEW_LINE>String url = args[0];<NEW_LINE>VoldemortConfig config = new VoldemortConfig(-1, "...
long start = System.currentTimeMillis();
479,964
protected List fetch() {<NEW_LINE>HazelcastClientInstanceImpl client = (HazelcastClientInstanceImpl) context.getHazelcastInstance();<NEW_LINE>String name = cacheProxy.getPrefixedName();<NEW_LINE>if (prefetchValues) {<NEW_LINE>ClientMessage request = CacheIterateEntriesCodec.encodeRequest(name, encodePointers(pointers),...
pointers = decodePointers(responseParameters.iterationPointers);
1,018,969
private static void parse(String s, Calendar cal) {<NEW_LINE>Matcher <MASK><NEW_LINE>if (!m.matches()) {<NEW_LINE>throw new IllegalArgumentException("Invalid date/time: " + s);<NEW_LINE>}<NEW_LINE>cal.clear();<NEW_LINE>cal.set(Calendar.YEAR, Integer.parseInt(m.group(1)));<NEW_LINE>cal.set(Calendar.MONTH, Integer.parseI...
m = pattern.matcher(s);
1,381,208
private FileChunksMeta openFileChunksInfo(FileChunksMeta fileChunksMeta) throws BrokerException {<NEW_LINE>ParamCheckUtils.validateFileName(fileChunksMeta.getFileName());<NEW_LINE>ParamCheckUtils.validateFileSize(fileChunksMeta.getFileSize());<NEW_LINE>ParamCheckUtils.validateFileMd5(fileChunksMeta.getFileMd5());<NEW_L...
throw new BrokerException(ErrorCode.DECODE_FILE_NAME_ERROR);
266,479
private static void install(AttachmentProvider attachmentProvider, String processId, @MaybeNull String argument, AgentProvider agentProvider, boolean isNative) {<NEW_LINE>AttachmentProvider.<MASK><NEW_LINE>if (!attachmentAccessor.isAvailable()) {<NEW_LINE>throw new IllegalStateException("No compatible attachment provid...
Accessor attachmentAccessor = attachmentProvider.attempt();
1,639,633
public void revokeRoomUsers(RoomUsersDeleteBatchRequest body, Long roomId, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body'...
localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
451,177
public ShareServiceAsyncClient buildAsyncClient() {<NEW_LINE>CredentialValidator.validateSingleCredentialIsPresent(storageSharedKeyCredential, <MASK><NEW_LINE>ShareServiceVersion serviceVersion = version != null ? version : ShareServiceVersion.getLatest();<NEW_LINE>HttpPipeline pipeline = (httpPipeline != null) ? httpP...
null, azureSasCredential, sasToken, LOGGER);
1,244,758
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>// Get Session Info<NEW_LINE>MobileSessionCtx <MASK><NEW_LINE>WWindowStatus ws = WWindowStatus.get(request);<NEW_LINE>if (// ws can be null for Login<NEW_LINE>wsc == null || ws == null)<NEW_LINE>...
wsc = MobileSessionCtx.get(request);
1,823,088
public DataSegment move(DataSegment segment, Map<String, Object> targetLoadSpec) throws SegmentLoadingException {<NEW_LINE>try {<NEW_LINE>Map<String, Object> loadSpec = segment.getLoadSpec();<NEW_LINE>String s3Bucket = <MASK><NEW_LINE>String s3Path = MapUtils.getString(loadSpec, "key");<NEW_LINE>final String targetS3Bu...
MapUtils.getString(loadSpec, "bucket");
1,809,100
public static void gatherData(GatherDataEvent event) {<NEW_LINE>// Capabilities are not registered yet, but cap references throw on null caps<NEW_LINE>CapabilityItemHandler.register();<NEW_LINE>CapabilityFluidHandler.register();<NEW_LINE>CapabilityEnergy.register();<NEW_LINE>CapabilityRedstoneNetwork.register();<NEW_LI...
(gen, exHelper, blockStates));
52,696
public Request<CreateDBClusterParameterGroupRequest> marshall(CreateDBClusterParameterGroupRequest createDBClusterParameterGroupRequest) {<NEW_LINE>if (createDBClusterParameterGroupRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<CreateDBC...
(tagsListValue.getKey()));
1,705,449
static void showOnAnchor(DeprecatedLithoTooltip tooltip, Rect anchorBounds, View hostView, TooltipPosition tooltipPosition, int xOffset, int yOffset) {<NEW_LINE>final int topOffset = anchorBounds.top - hostView.getHeight();<NEW_LINE>final int bottomOffset = anchorBounds.bottom - hostView.getHeight();<NEW_LINE>final int...
2) - hostView.getHeight();
1,852,559
protected WireFeed parseChannel(final Element rssRoot, final Locale locale) {<NEW_LINE>final Channel channel = new Channel(getType());<NEW_LINE>channel.setStyleSheet(getStyleSheet(rssRoot.getDocument()));<NEW_LINE>final Element eChannel = rssRoot.getChild("channel", getRSSNamespace());<NEW_LINE>final Element title = eC...
getChild("title", getRSSNamespace());
542,131
public static SemanticGraph enhanceGraph(SemanticGraph basic, SemanticGraph originalEnhanced, boolean keepEmptyNodes, Embedding embeddings, Pattern relativePronounsPattern) {<NEW_LINE>SemanticGraph enhanced = new SemanticGraph(basic.typedDependencies());<NEW_LINE>if (keepEmptyNodes && originalEnhanced != null) {<NEW_LI...
UniversalGrammaticalStructure.addRef(enhanced, relativePronounsPattern);
191,773
public void addMacroButtonPropertiesAtNextIndex(List<MacroButtonProperties> toSave, boolean gmPanel) {<NEW_LINE>List<MacroButtonProperties<MASK><NEW_LINE>int lastIndex = gmPanel ? gmMacroButtonLastIndex : macroButtonLastIndex;<NEW_LINE>// populate the lookup table and confirm lastIndex<NEW_LINE>for (MacroButtonProperti...
> macroButtonList = gmPanel ? gmMacroButtonProperties : macroButtonProperties;
1,212,552
public EventBean[] snapshotUpdate(QueryGraph filterQueryGraph, ExprEvaluator optionalWhereClause, EventBeanUpdateHelperWCopy updateHelper, Annotation[] annotations) {<NEW_LINE>agentInstanceContext.getEpStatementAgentInstanceHandle().getStatementAgentInstanceLock().acquireReadLock();<NEW_LINE>try {<NEW_LINE>Collection<E...
updateWCopy(event, eventsPerStream, agentInstanceContext);
1,015,093
public static void replaceWithAssignment(@NotNull Project project, @NotNull PsiElement element) {<NEW_LINE>if (element instanceof GoShortVarDeclaration) {<NEW_LINE>PsiElement parent = element.getParent();<NEW_LINE>if (parent instanceof GoSimpleStatement) {<NEW_LINE>String left = GoPsiImplUtil.joinPsiElementText(((GoSho...
) element).getRightExpressionsList());
425,249
private View createButtonWithSwitch(int iconId, @NonNull String title, boolean enabled, boolean showShortDivider, @Nullable OnClickListener listener) {<NEW_LINE>int activeColor = selectedAppMode.getProfileColor(nightMode);<NEW_LINE>int defColor = ColorUtilities.getDefaultIconColor(app, nightMode);<NEW_LINE>int iconColo...
newState = !cb.isChecked();
1,344,752
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.PullMessageResult other) {<NEW_LINE>if (other == cn.wildfirechat.proto.WFCMessage.PullMessageResult.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (messageBuilder_ == null) {<NEW_LINE>if (!other.message_.isEmpty()) {<NEW_LINE>if (message_.isEmpty()) {<N...
mergeUnknownFields(other.getUnknownFields());
1,697,503
public synchronized void removeObjects(Collection<? extends PathObject> pathObjects, boolean keepChildren) {<NEW_LINE>if (pathObjects.isEmpty())<NEW_LINE>return;<NEW_LINE>List<PathObject> pathObjectSet = new ArrayList<>(pathObjects);<NEW_LINE>pathObjectSet.sort((o1, o2) -> Integer.compare(o2.getLevel(), o1.getLevel()))...
list = map.get(parent);
624,609
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {<NEW_LINE>// Reset flag used to detect if child view's onMeasure() got called.<NEW_LINE>layout.setWasMeasured(false);<NEW_LINE>// Store this view's new size, minus the padding.<NEW_LINE>// Must be assigned before calling onMeasure() below.<NEW_LINE>...
getPaddingRight(), lp.width);
481,833
/* Deal with unexpected exception. only used for asyc send*/<NEW_LINE>public void waitForAckForChannel(Channel channel) {<NEW_LINE>if (channel == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>logger.info("wait for ack for channel {}", channel);<NEW_LINE>try {<NEW_LINE>ConcurrentHashMap<String, QueueObject> queueObjMap =...
channel, e.getMessage());
425,251
private static void initProxy() {<NEW_LINE>synchronized (SearchResultsTabArea.class) {<NEW_LINE>if (search_proxy_init_done) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>search_proxy_init_done = true;<NEW_LINE>}<NEW_LINE>new AEThread2("ST_test") {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>try {<NEW_LI...
= new ArrayList<>(pending);
56,895
private void updatePorts(Instance instance) {<NEW_LINE>int dx = 0;<NEW_LINE>int dy = 0;<NEW_LINE>Direction facing = <MASK><NEW_LINE>if (facing == Direction.NORTH) {<NEW_LINE>dy = 1;<NEW_LINE>} else if (facing == Direction.EAST) {<NEW_LINE>dx = -1;<NEW_LINE>} else if (facing == Direction.SOUTH) {<NEW_LINE>dy = -1;<NEW_L...
instance.getAttributeValue(StdAttr.FACING);
1,773,901
public JSDynamicObject execute(IteratorRecord iteratorRecord, JSDynamicObject constructor, PromiseCapabilityRecord resultCapability, Object promiseResolve) {<NEW_LINE>assert JSRuntime.isConstructor(constructor);<NEW_LINE>assert JSRuntime.isCallable(promiseResolve);<NEW_LINE>SimpleArrayList<Object> errors = new SimpleAr...
index, errors, resultCapability, remainingElementsCount);
485,731
private void runAssertion(RegressionEnvironment env, AtomicInteger milestone, boolean advanced, String filter) {<NEW_LINE>String epl = "create context MyContext start SupportBean_S0 as s0 end SupportBean_S1;\n" + HOOK + "@name('s0') context MyContext select * from SupportBean(" + filter + ");\n";<NEW_LINE>SupportFilter...
assertFilterSvcNone(env, "s0", "SupportBean");
1,681,568
ActionResult<WrapOutId> execute(String appDictFlag, String appInfoFlag, String path0, String path1, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<WrapOutId> result = new ActionResult<>();<NEW_LINE>Busines...
getAppInfoFactory().pick(appInfoFlag);
958,857
private static void performAdds(SvnClient client, SvnProgressSupport support, List<SvnFileNode> addCandidates) throws SVNClientException {<NEW_LINE>List<File> addFiles <MASK><NEW_LINE>List<File> addDirs = new ArrayList<File>();<NEW_LINE>// XXX waht if user denied directory add but wants to add a file in it?<NEW_LINE>It...
= new ArrayList<File>();
1,228,170
public boolean invoke(final String tableName, final Object[] ids, final IContextAware ctx) {<NEW_LINE>// do some basic checking<NEW_LINE>if (Check.isEmpty(tableName, true)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (ids == null || ids.length != 1 || ids[0] == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if ...
logger.info("Unable to load record for reference={}; returning false.", reference);
428,016
final DeleteLoginProfileResult executeDeleteLoginProfile(DeleteLoginProfileRequest deleteLoginProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteLoginProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteLoginProfile");
1,458,067
private void performCodeGen() {<NEW_LINE>if (codeGenCompleted) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<Diagnostic> diagnostics = new ArrayList<>();<NEW_LINE>// add package resolution diagnostics<NEW_LINE>diagnostics.addAll(this.packageContext.getResolution().diagnosticResult().allDiagnostics);<NEW_LINE>// add balle...
moduleDiagnostics = new ArrayList<>();
828,607
private ContainerRequest createContainerRequest(ChannelHandlerContext ctx, HttpRequest req) {<NEW_LINE>String s = req.uri().startsWith("/") ? req.uri().substring(<MASK><NEW_LINE>URI requestUri = URI.create(baseUri + ContainerUtils.encodeUnsafeCharacters(s));<NEW_LINE>ContainerRequest requestContext = new ContainerReque...
1) : req.uri();
1,599,127
public List<ReportReloadEntity> loadReport(long time) {<NEW_LINE>List<ReportReloadEntity> results = new ArrayList<ReportReloadEntity>();<NEW_LINE>Map<String, List<TransactionReport>> mergedReports = new HashMap<String, List<TransactionReport>>();<NEW_LINE>for (int i = 0; i < getAnalyzerCount(); i++) {<NEW_LINE>Map<Stri...
TransactionReport r = entry.getValue();
117,405
private List<URL> createArtificialBinaries(FileObject[] fos) {<NEW_LINE>assert Thread.holdsLock(this);<NEW_LINE>final List<URL> res = new ArrayList<>(fos.length);<NEW_LINE>File artBinaries = null;<NEW_LINE>MessageDigest md5 = null;<NEW_LINE>try {<NEW_LINE>for (FileObject fo : fos) {<NEW_LINE>final <MASK><NEW_LINE>URL b...
URI srcURI = fo.toURI();
751,920
public BasicOpenSessionResp openSession(String username, String password, String zoneId, TSProtocolVersion tsProtocolVersion, IoTDBConstant.ClientVersion clientVersion) throws TException {<NEW_LINE>BasicOpenSessionResp openSessionResp = new BasicOpenSessionResp();<NEW_LINE>boolean status;<NEW_LINE>IAuthorizer authorize...
TSStatusCode.INCOMPATIBLE_VERSION.getStatusCode());
1,854,449
final GetBlacklistReportsResult executeGetBlacklistReports(GetBlacklistReportsRequest getBlacklistReportsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getBlacklistReportsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
97,756
public void run() {<NEW_LINE>log.info("Starting cluster monitor thread " + getName());<NEW_LINE>// Pings must happen in a separate thread from this to handle timeouts<NEW_LINE>// By using a cached thread pool we ensured that 1) a single thread will be used<NEW_LINE>// for all pings when there are no problems (important...
info("Stopped cluster monitor thread " + getName());
1,746,720
final DeleteLoggingConfigurationResult executeDeleteLoggingConfiguration(DeleteLoggingConfigurationRequest deleteLoggingConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteLoggingConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
(super.beforeMarshalling(deleteLoggingConfigurationRequest));
1,560,409
public void printGraph() {<NEW_LINE>int count = 0;<NEW_LINE>for (Vertex<N> v : getVertices()) {<NEW_LINE>Logger.log(1, count + ") vertex = " + v + " (" + v.getX() + ", " + <MASK><NEW_LINE>count++;<NEW_LINE>// out going edges<NEW_LINE>N node = v.getNodeDesignElement();<NEW_LINE>if (node == null) {<NEW_LINE>continue;<NEW...
v.getY() + ")");
1,089,981
private void convertFile(FileChannel fc) throws IOException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {<NEW_LINE>Tr.event(tc, "Converting FileChannel to buffers");<NEW_LINE>}<NEW_LINE>final WsByteBuffer[] body = new WsByteBuffer[1];<NEW_LINE>final <MASK><NEW_LINE>final long max = fc.si...
WsByteBufferPoolManager mgr = HttpDispatcher.getBufferManager();
1,431,731
protected void internalReceiveCommand(String itemName, Command command) {<NEW_LINE>logger.debug("internalReceiveCommand() is called!");<NEW_LINE>EnergenieBindingConfig deviceConfig = getConfigForItemName(itemName);<NEW_LINE>if (deviceConfig == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>String pmsId = d...
parseInt(deviceConfig.getItemConfig());
1,587,972
public void errorResponse(byte[] data, @NotNull AbstractService service) {<NEW_LINE>TraceManager.TraceObject traceObject = TraceManager.serviceTrace(service, "get-sql-execute-error");<NEW_LINE>TraceManager.finishSpan(service, traceObject);<NEW_LINE>pauseTime((MySQLResponseService) service);<NEW_LINE>ErrorPacket errPack...
errorPacket, AutoTxOperation.ROLLBACK, false);
1,150,963
public static void down(GrayS8 input, GrayI8 output) {<NEW_LINE>int maxY = input<MASK><NEW_LINE>int maxX = input.width - input.width % 2;<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, maxY, 2, y -> {<NEW_LINE>for (int y = 0; y < maxY; y += 2) {<NEW_LINE>int indexOut = output.startIndex + (y / 2) * output.stri...
.height - input.height % 2;
378,340
public void handleEvent(EventSubscriptionEntity eventSubscription, Object payload, Object localPayload, String businessKey, CommandContext commandContext) {<NEW_LINE>eventSubscription.delete();<NEW_LINE><MASK><NEW_LINE>ensureNotNull("Compensating execution not set for compensate event subscription with id " + eventSubs...
String configuration = eventSubscription.getConfiguration();
678,506
private CouchDBQueryInterpreter onAggregatedQuery(EntityMetadata m, CouchDBQueryInterpreter interpreter, KunderaQuery kunderaQuery) {<NEW_LINE>interpreter.setAggregation(true);<NEW_LINE>SelectStatement selectStatement = kunderaQuery.getSelectStatement();<NEW_LINE>Expression whereClause = selectStatement.getWhereClause(...
interpreter.setAggregationType(CouchDBConstants.COUNT);
532,215
final ListDatasetImportJobsResult executeListDatasetImportJobs(ListDatasetImportJobsRequest listDatasetImportJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDatasetImportJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
28,779
public void handleOutbound(Context ctx) throws ServletException, IOException {<NEW_LINE>Model model = new Model(ctx);<NEW_LINE>Payload payload = ctx.getPayload();<NEW_LINE>Action action = payload.getAction();<NEW_LINE>switch(action) {<NEW_LINE>case DOMAINS:<NEW_LINE>JsonBuilder jb = new JsonBuilder();<NEW_LINE>Set<Stri...
m_jspViewer.view(ctx, model);
1,789,256
private Concrete.@Nullable Pattern translateNumberPatterns(Concrete.NumberPattern pattern, @NotNull Expression typeExpr) {<NEW_LINE>if (myVisitor == null) {<NEW_LINE>return DesugarVisitor.desugarNumberPattern(pattern, myErrorReporter);<NEW_LINE>}<NEW_LINE>var ext = myVisitor.getExtension();<NEW_LINE>if (ext == null) {<...
DesugarVisitor.desugarNumberPattern(pattern, myErrorReporter);
822,844
public static ItemStack create(Type type, OrientedContraptionEntity entity) {<NEW_LINE>ItemStack stack = ItemStack.EMPTY;<NEW_LINE>switch(type) {<NEW_LINE>case RIDEABLE:<NEW_LINE>stack = AllItems.MINECART_CONTRAPTION.asStack();<NEW_LINE>break;<NEW_LINE>case FURNACE:<NEW_LINE>stack = AllItems.FURNACE_MINECART_CONTRAPTIO...
getContraption().writeNBT(false);
1,418,831
public GetResult merge(List<PartitionGetResult> partResults) {<NEW_LINE>int resultSize = 0;<NEW_LINE>for (PartitionGetResult result : partResults) {<NEW_LINE>resultSize += ((PartGeneralGetResult) result).getNodeIds().length;<NEW_LINE>}<NEW_LINE>Long2ObjectOpenHashMap<Tuple3<long[], float[], int[]>> nodeIdToNeighbors <M...
= new Long2ObjectOpenHashMap<>(resultSize);
1,183,757
private static JPanel buildLinkPanel(ImageIcon icon, String topText, String bottomText, Runnable callback) {<NEW_LINE>JPanel container = new JPanel();<NEW_LINE>container.setBackground(ColorScheme.DARKER_GRAY_COLOR);<NEW_LINE>container.setLayout(new BorderLayout());<NEW_LINE>container.setBorder(new EmptyBorder(10, 10, 1...
new Cursor(Cursor.DEFAULT_CURSOR));
900,274
public Void migrateProcessInstance(CommandContext commandContext, String processInstanceId, MigrationPlan migrationPlan, ProcessDefinitionEntity targetProcessDefinition, boolean skipJavaSerializationFormatCheck) {<NEW_LINE>ensureNotNull(BadUserRequestException.class, "Process instance id cannot be null", "process insta...
, variables, false, skipJavaSerializationFormatCheck));