idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,114,290
private boolean decodeRelayParameters(Cardio2eRelayTransaction receivedCardio2eTransaction, List<String> digestedTransaction) {<NEW_LINE>boolean decodeComplete = false;<NEW_LINE>switch(receivedCardio2eTransaction.getTransactionType()) {<NEW_LINE>case ACK:<NEW_LINE>case GET:<NEW_LINE>if (digestedTransaction.size() == 3)...
decodeComplete = decodeNACK(receivedCardio2eTransaction, digestedTransaction);
262,287
// Look for reads and writes to temporaries<NEW_LINE>private void optimizeGather1(Constructor ct, MapSTL<Long, OptimizeRecord> recs, int secnum) {<NEW_LINE>ConstructTpl tpl;<NEW_LINE>if (secnum < 0) {<NEW_LINE>tpl = ct.getTempl();<NEW_LINE>} else {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (tpl == null) {<NEW_LINE>return;...
tpl = ct.getNamedTempl(secnum);
1,617,399
// transfer demand from previous to next<NEW_LINE>public void addMissingRequests() {<NEW_LINE>int missed = 1;<NEW_LINE>long toRequest = 0L;<NEW_LINE>do {<NEW_LINE>long localQueued = queued.getAndSet(0l);<NEW_LINE>Subscription localSub = next.getAndSet(null);<NEW_LINE>long missedOutput = produced.get();<NEW_LINE>Subscri...
localActive.request(Long.MAX_VALUE);
145,167
public static NKFCharset guess(ThreadContext context, IRubyObject s) {<NEW_LINE>// TODO: Fix charset usage for JRUBY-4553<NEW_LINE>Ruby runtime = context.runtime;<NEW_LINE>if (!s.respondsTo("to_str")) {<NEW_LINE>throw runtime.newTypeError("can't convert " + s.getMetaClass() + " into String");<NEW_LINE>}<NEW_LINE>ByteLi...
), bytes.length());
332,066
public CtClass makeSubclass2(ClassPool pool, CtClass type) throws CannotCompileException, NotFoundException, IOException {<NEW_LINE>CtClass vec = pool.makeClass(makeClassName(type));<NEW_LINE>vec.setSuperclass(pool.get("java.util.Vector"));<NEW_LINE>CtClass c = pool.get("sample.vector.Sample2");<NEW_LINE>CtMethod addme...
] args2 = { CtClass.intType };
1,395,773
public Address add(Address addr, long displacement) {<NEW_LINE>if (displacement < 0) {<NEW_LINE>return subtract(addr, -displacement);<NEW_LINE>}<NEW_LINE>testAddressSpace(addr);<NEW_LINE>if (displacement > spaceSize) {<NEW_LINE>throw new AddressOutOfBoundsException("Address Overflow in add: " + addr + " + " + displacem...
"Address Overflow in add: " + addr + " + " + displacement);
1,202,941
public Set<Permission> fetchAllPermissions(String resouceName) throws IOException, GeneralSecurityException {<NEW_LINE>logger.atInfo().log("Fetching all permissions from " + resouceName);<NEW_LINE>QueryTestablePermissionsRequest requestBody = new QueryTestablePermissionsRequest();<NEW_LINE>requestBody.setFullResourceNa...
Iam iamService = IamClient.getIamClient();
1,809,798
private PureNFA createNFA(RegexASTSubtreeRootNode root) {<NEW_LINE>assert expansionQueue.isEmpty();<NEW_LINE>Arrays.fill(nfaStates, null);<NEW_LINE>stateID.reset();<NEW_LINE>transitionID.reset();<NEW_LINE>PureNFAState dummyInitialState = new PureNFAState(stateID.inc(), ast.getWrappedRoot());<NEW_LINE>nfaStates[ast.getW...
anchoredFinalState, dummyInitialState), finalStateTransition });
1,446,622
public static DescribeDnsGtmMonitorConfigResponse unmarshall(DescribeDnsGtmMonitorConfigResponse describeDnsGtmMonitorConfigResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDnsGtmMonitorConfigResponse.setRequestId(_ctx.stringValue("DescribeDnsGtmMonitorConfigResponse.RequestId"));<NEW_LINE>describeDnsGtmMonitorCo...
(_ctx.longValue("DescribeDnsGtmMonitorConfigResponse.UpdateTimestamp"));
224,257
public boolean previewSql(EditingTarget editingTarget) {<NEW_LINE>TextEditingTargetCommentHeaderHelper previewSource = new TextEditingTargetCommentHeaderHelper(docDisplay_.getCode(), "preview", "--");<NEW_LINE>if (!previewSource.hasCommentHeader())<NEW_LINE>return false;<NEW_LINE>if (previewSource.getFunction().length(...
constants_.errorPreviewingSql(), message);
120,910
private void dump() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>for (Map.Entry<Class, ApiMessageDescriptor> e : descriptors.entrySet()) {<NEW_LINE><MASK><NEW_LINE>sb.append("\n-------------------------------------------");<NEW_LINE>sb.append(String.format("\nname: %s", desc.getName()));<NEW_LINE>sb.appe...
ApiMessageDescriptor desc = e.getValue();
228,139
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>log.info("doGet from " + request.getRemoteHost() + " - " + request.getRemoteAddr() + " - forward to notes.jsp");<NEW_LINE>String url = "/notes.jsp";<NEW_LINE>//<NEW_LINE>HttpSession session = requ...
getServletContext().getRequestDispatcher(url);
719,801
private List<AbstractAnnotationBeanPostProcessor.AnnotatedFieldElement> findFieldAnnotationMetadata(final Class<?> beanClass) {<NEW_LINE>final List<AbstractAnnotationBeanPostProcessor.AnnotatedFieldElement> elements = new LinkedList<AbstractAnnotationBeanPostProcessor.AnnotatedFieldElement>();<NEW_LINE>ReflectionUtils....
getEnvironment(), true, true);
3,496
final GetStreamingImageResult executeGetStreamingImage(GetStreamingImageRequest getStreamingImageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getStreamingImageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
463,030
public Request<PutRetentionPolicyRequest> marshall(PutRetentionPolicyRequest putRetentionPolicyRequest) {<NEW_LINE>if (putRetentionPolicyRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(PutRetentionPolicyRequest)");<NEW_LINE>}<NEW_LINE>Request<PutRetentionPolicyRequest> r...
content = snippet.getBytes(UTF8);
751,298
public InstanceList[] nextSplit() {<NEW_LINE>if (!hasNext()) {<NEW_LINE>throw new NoSuchElementException();<NEW_LINE>}<NEW_LINE>InstanceList[] ret = new InstanceList[2];<NEW_LINE>if (this.folds.length == 1) {<NEW_LINE>ret[0<MASK><NEW_LINE>ret[1] = this.folds[0];<NEW_LINE>} else {<NEW_LINE>InstanceList[] training = new ...
] = this.folds[0];
864,970
private Path findBalaPath(Path repoLocation, String orgName, String pkgName, String platform, String versionStr) throws IOException {<NEW_LINE>Path balaFilePath = this.repoLocation.resolve(orgName).resolve<MASK><NEW_LINE>// try to find a compatible bala file<NEW_LINE>if (Files.exists(balaFilePath)) {<NEW_LINE>Stream<Pa...
(pkgName).resolve(versionStr);
1,051,462
public MultiplexOutputSettings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MultiplexOutputSettings multiplexOutputSettings = new MultiplexOutputSettings();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
JsonToken token = context.getCurrentToken();
1,487,163
final PutAccountConfigurationResult executePutAccountConfiguration(PutAccountConfigurationRequest putAccountConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putAccountConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,517,746
private static JsExpression simplifyOp(JsBinaryOperation expr) {<NEW_LINE>SourceInfo info = expr.getSourceInfo();<NEW_LINE><MASK><NEW_LINE>JsExpression arg2 = expr.getArg2();<NEW_LINE>JsBinaryOperator op = expr.getOperator();<NEW_LINE>if (op == JsBinaryOperator.ADD && (arg1 instanceof JsStringLiteral || arg2 instanceof...
JsExpression arg1 = expr.getArg1();
1,401,335
static void convertBgpProcess(Configuration c, CumulusNcluConfiguration vsConfig, Warnings w) {<NEW_LINE><MASK><NEW_LINE>if (bgpProcess == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// First pass: only core processes<NEW_LINE>c.getDefaultVrf().setBgpProcess(toBgpProcess(c, vsConfig, DEFAULT_VRF_NAME, bgpProcess.getDe...
BgpProcess bgpProcess = vsConfig.getBgpProcess();
1,443,466
private void createSearchItem() {<NEW_LINE>View searchView = View.inflate(new ContextThemeWrapper(getContext(), themeRes), R.layout.bottom_sheet_double_item, null);<NEW_LINE>TextView firstTitle = (TextView) searchView.findViewById(R.id.first_title);<NEW_LINE>TextView secondTitle = (TextView) searchView.findViewById(R.i...
showQuickSearch(getSearchMode(), false);
190,245
private void checkExpansionKeystroke(KeyEvent evt) {<NEW_LINE>Position pos = null;<NEW_LINE>Document d = null;<NEW_LINE>synchronized (abbrevChars) {<NEW_LINE>if (abbrevEndPosition != null && component != null && doc != null && component.getCaretPosition() == abbrevEndPosition.getOffset() && !isAbbrevDisabled() && doc.g...
d, pos.getOffset());
1,667,646
// ----- private methods -----<NEW_LINE>private boolean eq(final Object o1, final Object o2) {<NEW_LINE>if (o1 == null && o2 == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if ((o1 == null && o2 != null) || (o1 != null && o2 == null)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (o1 instanceof Nu...
) o1, (String) o2);
1,308,734
private Model filterMetadata(Model model, Config config, List<ValidationEvent> suppressedEvents, Set<String> removedValidators) {<NEW_LINE>// Next remove metadata suppressions that didn't suppress anything.<NEW_LINE>ArrayNode suppressionsNode = model.getMetadata().getOrDefault("suppressions", Node.arrayNode()).expectAr...
suppression = Suppression.fromMetadata(object);
1,199,812
static ElementDocProvider create(@NotNull PsiElement psiElement) {<NEW_LINE>Project project = psiElement.getProject();<NEW_LINE>if (psiElement instanceof ErlangModule) {<NEW_LINE>VirtualFile virtualFile = getVirtualFile(psiElement);<NEW_LINE>if (virtualFile == null)<NEW_LINE>return null;<NEW_LINE>ErlangModule erlangMod...
project, functionName, arity, virtualFile);
957,390
void outOfScope() {<NEW_LINE>final String methodName = "outOfScope";<NEW_LINE>if (TRACE.isEntryEnabled()) {<NEW_LINE>SibTr.entry(this, TRACE, methodName);<NEW_LINE>}<NEW_LINE>_outOfScope = true;<NEW_LINE>try {<NEW_LINE>// Close cloned connection so that it, and any resource created<NEW_LINE>// from it, also throw SIObj...
exception, "com.ibm.ws.sib.ra.inbound.impl.SibRaAbstractConsumerSession.outOfScope", FFDC_PROBE_1, this);
219,851
void redirect(String to) {<NEW_LINE>Supplier<String>[] redirectedFrom = this.redirectedFrom;<NEW_LINE>UriEndpoint toURITemp;<NEW_LINE>UriEndpoint from = toURI;<NEW_LINE><MASK><NEW_LINE>if (address instanceof InetSocketAddress) {<NEW_LINE>try {<NEW_LINE>URI redirectUri = new URI(to);<NEW_LINE>if (!redirectUri.isAbsolute...
SocketAddress address = from.getRemoteAddress();
1,460,381
public Long migrate(final HaWorkVO work) {<NEW_LINE>long vmId = work.getInstanceId();<NEW_LINE>long srcHostId = work.getHostId();<NEW_LINE>VMInstanceVO vm = _instanceDao.findById(vmId);<NEW_LINE>if (vm == null) {<NEW_LINE>s_logger.info("Unable to find vm: " + vmId + ", skipping migrate.");<NEW_LINE>return null;<NEW_LIN...
". Exception: " + e.getMessage());
1,110,854
// [END string_task_method]<NEW_LINE>public void taskChaining() {<NEW_LINE>// [START task_chaining]<NEW_LINE>Task<AuthResult> signInTask = FirebaseAuth.getInstance().signInAnonymously();<NEW_LINE>signInTask.continueWithTask(new Continuation<AuthResult, Task<String>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Task...
AuthResult result = task.getResult();
366,206
public void contribute(BuildContext context, AotOptions aotOptions) {<NEW_LINE>TypeSystem typeSystem = new TypeSystem(context.getClasspath(), context.getMainClass());<NEW_LINE>typeSystem.setAotOptions(aotOptions);<NEW_LINE>SpringAnalyzer springAnalyzer = new SpringAnalyzer(typeSystem, aotOptions);<NEW_LINE>springAnalyz...
configurationCollector.addOption("-H:Class=" + mainClass);
879,201
public final InheritanceGraph build() {<NEW_LINE>validateUniqueClasses(nodes);<NEW_LINE>Map<InheritanceGraph.Key, InheritanceGraphNode> <MASK><NEW_LINE>// First, compute the inheritance graph<NEW_LINE>for (ClassNode classNode : nodes) {<NEW_LINE>InheritanceGraphNode thisNode = inheritanceGraph.computeIfAbsent(Inheritan...
inheritanceGraph = new HashMap<>();
1,689,482
private void processDirectory(TransferListener listener, String dMsg, String tMsg, LocalDestFile f) throws IOException {<NEW_LINE>// D<perms> 0 <dirname><NEW_LINE>final List<String> dMsgParts = tokenize(dMsg, 3, true);<NEW_LINE>final long length = parseLong(dMsgParts<MASK><NEW_LINE>final String dirname = dMsgParts.get(...
.get(1), "dir length");
1,700,168
protected void configure() {<NEW_LINE>install(new MessagingBinders.MessageBodyProviders(clientRuntimeProperties, RuntimeType.CLIENT), new MessagingBinders.HeaderDelegateProviders());<NEW_LINE>bindFactory(ReferencingFactory.referenceFactory()).to(new GenericType<Ref<ClientConfig>>() {<NEW_LINE>}).in(RequestScoped.class)...
).in(RequestScoped.class);
237,688
private final Command mergeSetCommands(final Command currentCmd, final Queue writeQueue, final Queue<Command> executingCmds, final CommandType expectedCommandType, final int sendBufferSize) {<NEW_LINE>int mergeCount = 1;<NEW_LINE>final CommandCollector commandCollector = BIN_SET_CMD_COLLECTOR_THREAD_LOCAL.get().reset()...
"Merge set command:" + nextCmd.toString());
1,310,065
public void publishTemplate(String designId, NewApiTemplate newApiTemplate) throws ServerError, NotFoundException, AccessDeniedException {<NEW_LINE><MASK><NEW_LINE>metrics.apiCall("/designs/{designId}/templates", "POST");<NEW_LINE>final User user = this.security.getCurrentUser();<NEW_LINE>final String userLogin = user....
logger.debug("Publishing a template from API: {}", designId);
799,324
public void testServletSubmitsManagedTaskThatLooksUpBMTBean(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>PrintWriter out = response.getWriter();<NEW_LINE>Future<?> future = executor.submit(new Callable<Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void call() throws Exc...
Object ejbTxKey = ejb.getTransactionKey();
1,277,879
public <T> TaskResult<T> executeWithLock(@NonNull TaskWithResult<T> task, @NonNull LockConfiguration lockConfig) throws Throwable {<NEW_LINE>Optional<SimpleLock> lock = lockProvider.lock(lockConfig);<NEW_LINE>String lockName = lockConfig.getName();<NEW_LINE>if (alreadyLockedBy(lockName)) {<NEW_LINE>logger.debug("Alread...
startLock(lock.get());
796,402
public void marshall(WorkflowRun workflowRun, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (workflowRun == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(workflowRun.getName(), NAME_BINDING);<NEW_LINE>prot...
workflowRun.getWorkflowRunProperties(), WORKFLOWRUNPROPERTIES_BINDING);
295,653
public void run() {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>if (database == null) {<NEW_LINE>callback.onError("Database Error");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String sql = "INSERT OR REPLACE INTO " + mSQLiteHelper.getTableName() + " VALUES (?, ?);";<NEW_LINE>SQLiteStatement statement = database.compileStatement(...
SQLiteDatabase database = mSQLiteHelper.getDatabase();
1,299,131
static RemoteMessage remoteMessageFromReadableMap(ReadableMap readableMap) {<NEW_LINE>RemoteMessage.Builder builder = new RemoteMessage.Builder(readableMap.getString(KEY_TO));<NEW_LINE>if (readableMap.hasKey(KEY_TTL)) {<NEW_LINE>builder.setTtl(readableMap.getInt(KEY_TTL));<NEW_LINE>}<NEW_LINE>if (readableMap.hasKey(KEY...
(readableMap.getString(KEY_MESSAGE_TYPE));
205,713
public RecordTypeDescriptorNode transform(RecordTypeDescriptorNode recordTypeDesc) {<NEW_LINE>final int recordKeywordTrailingWS = 1;<NEW_LINE>Token recordKeyword = formatNode(recordTypeDesc.recordKeyword(), recordKeywordTrailingWS, 0);<NEW_LINE>int fieldTrailingWS = 0;<NEW_LINE>int fieldTrailingNL = 0;<NEW_LINE>if (sho...
withBodyEndDelimiter(bodyEndDelimiter).apply();
1,618,316
private ImmutableList<AnnotationMirror> propertyFieldAnnotations(TypeElement type, ExecutableElement method) {<NEW_LINE>if (!hasAnnotationMirror(method, COPY_ANNOTATIONS_NAME)) {<NEW_LINE>return ImmutableList.of();<NEW_LINE>}<NEW_LINE>ImmutableSet<String> excludedAnnotations = ImmutableSet.<String>builder().addAll(getE...
getReturnTypeAnnotations(method, this::annotationAppliesToFields);
1,596,318
public boolean validate() throws ContractValidateException {<NEW_LINE>if (this.any == null) {<NEW_LINE>throw new ContractValidateException(ActuatorConstant.CONTRACT_NOT_EXIST);<NEW_LINE>}<NEW_LINE>if (chainBaseManager == null) {<NEW_LINE>throw new ContractValidateException(ActuatorConstant.STORE_NOT_EXIST);<NEW_LINE>}<...
ContractValidateException("The last withdraw time is " + latestWithdrawTime + ", less than 24 hours");
1,502,062
public Long apply(Long captureTime) {<NEW_LINE>Calendar calendar;<NEW_LINE>switch(rollup) {<NEW_LINE>case HOURLY:<NEW_LINE>return CaptureTimes.getRollup(captureTime, HOURS.toMillis(1), timeZone);<NEW_LINE>case DAILY:<NEW_LINE>return <MASK><NEW_LINE>case WEEKLY:<NEW_LINE>calendar = getDailyRollupCaptureTime(captureTime)...
getDailyRollupCaptureTime(captureTime).getTimeInMillis();
1,489,538
public RelRoot toRel(final SqlNode validatedNode) {<NEW_LINE>initCluster(initPlanner());<NEW_LINE>DrillViewExpander viewExpander = new DrillViewExpander(this);<NEW_LINE>final SqlToRelConverter sqlToRelConverter = new SqlToRelConverter(viewExpander, validator, catalog, cluster, DrillConvertletTable.INSTANCE, sqlToRelCon...
(rel.rel, true));
1,736,404
public boolean eventOccurred(UISWTViewEvent event) {<NEW_LINE>switch(event.getType()) {<NEW_LINE>case UISWTViewEvent.TYPE_CREATE:<NEW_LINE>swtView = event.getView();<NEW_LINE>swtView.setTitle(getFullTitle());<NEW_LINE>swtView.setToolBarListener(this);<NEW_LINE>break;<NEW_LINE>case UISWTViewEvent.TYPE_DESTROY:<NEW_LINE>...
swtView.setTitle(getFullTitle());
635,498
private void init(Map<UUID, SecretKey> keys) {<NEW_LINE>CencDecryptingSampleEntryTransformer tx = new CencDecryptingSampleEntryTransformer();<NEW_LINE>List<Sample> encSamples = original.getSamples();<NEW_LINE>RangeStartMap<Integer, SecretKey> indexToKey = new RangeStartMap<>();<NEW_LINE>RangeStartMap<Integer, SampleEnt...
encSamples, original.getSampleEncryptionEntries());
586,470
private void writeRels(SubGraph graph, CSVWriter out, Reporter reporter, List<String> relHeader, int cols, int offset, int batchSize, String delimiter) {<NEW_LINE>String[] row = new String[cols];<NEW_LINE>int rels = 0;<NEW_LINE>for (Relationship rel : graph.getRelationships()) {<NEW_LINE>row[offset] = String.valueOf(re...
out.writeNext(row, applyQuotesToAll);
1,289,346
protected void addActionsTimed() {<NEW_LINE>FutureTask<Integer> task = new FutureTask<>(new Callable<Integer>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Integer call() throws Exception {<NEW_LINE>return addActions(root, Integer.MIN_VALUE, Integer.MAX_VALUE);<NEW_LINE>}<NEW_LINE>});<NEW_LINE>long startTime = Syste...
logger.fatal("Simulation error", e);
1,806,628
public void onResume() {<NEW_LINE>super.onResume();<NEW_LINE>tileFileSystemMaxQueueSize.setText(Configuration.getInstance().getTileFileSystemMaxQueueSize() + "");<NEW_LINE>tileFileSystemThreads.setText(Configuration.getInstance().getTileFileSystemThreads() + "");<NEW_LINE>tileDownloadMaxQueueSize.setText(Configuration....
getOsmdroidBasePath().getAbsolutePath());
603,613
private void parseTypeNode(CanInclude include, int i, JsonNode typeNode) throws QueryException {<NEW_LINE>String identifier = i == -1 ? "type" : "\\types\"[" + i + "]";<NEW_LINE>if (typeNode.isTextual()) {<NEW_LINE>EClass eClass = packageMetaData.getEClassIncludingDependencies(typeNode.asText());<NEW_LINE>if (eClass ==...
String fieldName = fieldNames.next();
1,297,427
public com.amazonaws.services.simplesystemsmanagement.model.UnsupportedCalendarException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.simplesystemsmanagement.model.UnsupportedCalendarException unsupportedCalendarException = new com.amazonaws.services.simplesy...
JsonToken token = context.getCurrentToken();
485,512
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1,c2,c3".split(",");<NEW_LINE>SupportEvalBuilder builder = new SupportEvalBuilder("SupportBean_Container");<NEW_LINE>builder.expression(fields[0], "beans.sumOf(x => intBoxed)");<NEW_LINE>builder.expression(fields[1], "beans.sumOf( (x, i) => in...
null, null, null, null);
79,297
public void testUnchangedContextTypesIgnoredIfUnknown() throws Exception {<NEW_LINE>ThreadContext contextSvc = ThreadContext.builder().propagated(TestContextTypes.CITY, TestContextTypes.STATE).unchanged("AnUnknownType", "AnotherUnknownType").build();<NEW_LINE>CurrentLocation.setLocation("Pine Island", "Minnesota");<NEW...
"Wisconsin", CurrentLocation.getState());
760,908
JPanel createSourceCodePanel() {<NEW_LINE>Font sourceFont = new Font("Monospaced", Font.PLAIN, (int) Driver.getFontSize());<NEW_LINE>mainFrame.getSourceCodeTextPane().setFont(sourceFont);<NEW_LINE>mainFrame.getSourceCodeTextPane().setEditable(false);<NEW_LINE>mainFrame.getSourceCodeTextPane().<MASK><NEW_LINE>mainFrame....
getCaret().setSelectionVisible(true);
577,151
public boolean apply(Game game, Ability source, Ability abilityToModify) {<NEW_LINE>int reduceAmount;<NEW_LINE>if (game.inCheckPlayableState()) {<NEW_LINE>// checking state (search max possible targets)<NEW_LINE>reduceAmount = getMaxPossibleTargetCreatures(abilityToModify, game);<NEW_LINE>} else {<NEW_LINE>// real cast...
permanent = game.getPermanent(uuid);
221,199
public void executeWriteAction(Editor editor, Caret caret, DataContext dataContext) {<NEW_LINE>final Document doc = editor.getDocument();<NEW_LINE>LogicalPosition caretPosition = caret.getLogicalPosition();<NEW_LINE>int startLine = caretPosition.line;<NEW_LINE>int endLine = startLine + 1;<NEW_LINE>if (caret.hasSelectio...
) + doc.getLineSeparatorLength(line);
1,826,094
public static void printHelp(PrintStream stream) throws IOException {<NEW_LINE>stream.println();<NEW_LINE>stream.println("NAME");<NEW_LINE>stream.println(" meta set - Set metadata on nodes");<NEW_LINE>stream.println();<NEW_LINE>stream.println("SYNOPSIS");<NEW_LINE>stream.println(" meta set <meta-key>=<meta-value>[,<m...
println(" " + MetadataStore.PARTITION_STREAMING_ENABLED_KEY);
811,755
public boolean validateSubjectOUField(final String provider, final String certSubjectOU, Set<String> validValues) {<NEW_LINE>try {<NEW_LINE>String value = Crypto.extractX509CSRSubjectOUField(certReq);<NEW_LINE>if (value == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// we have three values that we want to possibl...
Crypto.CERT_RESTRICTED_SUFFIX.length());
1,678,213
public static void onTextureStitchPre(TextureMap map) {<NEW_LINE>for (FluidSpriteType type : FluidSpriteType.values()) {<NEW_LINE>fluidSprites.get(type).clear();<NEW_LINE>}<NEW_LINE>Map<ResourceLocation, SpriteFluidFrozen> spritesStitched = new HashMap<>();<NEW_LINE>for (Fluid fluid : FluidRegistry.getRegisteredFluids(...
, map.registerSprite(flowing));
1,593,214
public void marshall(BackendJobRespObj backendJobRespObj, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (backendJobRespObj == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(backendJobRespObj.getAppId(), APP...
backendJobRespObj.getError(), ERROR_BINDING);
1,421,356
private static void dumpCertInfo(X509Certificate[] certs) throws CertificateEncodingException {<NEW_LINE>logger.tracef(":: Try Holder of Key Token");<NEW_LINE>logger.tracef(":: # of x509 Client Certificate in Certificate Chain = %d", certs.length);<NEW_LINE>for (int i = 0; i < certs.length; i++) {<NEW_LINE>logger.trace...
toString().length());
1,150,706
public final void onBindViewHolder(EpisodeItemViewHolder holder, int pos) {<NEW_LINE>// Reset state of recycled views<NEW_LINE>holder.coverHolder.setVisibility(View.VISIBLE);<NEW_LINE>holder.dragHandle.setVisibility(View.GONE);<NEW_LINE>beforeBindViewHolder(holder, pos);<NEW_LINE>FeedItem item = episodes.get(pos);<NEW_...
getItem(holder.getBindingAdapterPosition());
34,985
private ImmutableList<ModuleDependencyMetadata> filterDependencies(DefaultConfigurationMetadata config) {<NEW_LINE>if (dependencies.isEmpty()) {<NEW_LINE>return ImmutableList.of();<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>// If we're reaching this point, we're very likely going to iterate on the dependencies<NEW_LINE>// sev...
int size = dependencies.size();
1,287,935
public synchronized // f187521.2.1<NEW_LINE>// f187521.2.1<NEW_LINE>AsynchConsumerProxyQueue // f187521.2.1<NEW_LINE>createReadAheadProxyQueue(Reliability unrecoverableReliability) throws SIResourceException, SIIncorrectCallException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>S...
this, id, conversation, unrecoverableReliability);
624,291
static Response toStandardResponse(MockMvcResponse response) {<NEW_LINE>if (!(response instanceof MockMvcRestAssuredResponseImpl)) {<NEW_LINE>throw new IllegalArgumentException(MockMvcResponse.class.getName() + " must be an instance of " + MockMvcRestAssuredResponseImpl.class.getName());<NEW_LINE>}<NEW_LINE>MockMvcRest...
setStatusCode(mvc.getStatusCode());
1,106,396
public OResultSet executeSimple(OCommandContext ctx) {<NEW_LINE>ODatabaseDocumentInternal db = getDatabase();<NEW_LINE>ORole role = db.getMetadata().getSecurity().getRole(actor.getStringValue());<NEW_LINE>if (role == null)<NEW_LINE>throw new OCommandExecutionException("Invalid role: " + actor.getStringValue());<NEW_LIN...
"policy", policyName.getStringValue());
39,583
private void reassignEarlyHolders(Context context) {<NEW_LINE>ReflectUtil.field(ReflectUtil.method(ReflectUtil.type("com.sun.tools.javac.comp.Analyzer"), "instance", Context.class).invokeStatic(context), TYPES_FIELD).set(this);<NEW_LINE>ReflectUtil.field(Annotate.instance(context), TYPES_FIELD).set(this);<NEW_LINE>Refl...
, TYPES_FIELD).set(this);
1,072,442
private void readSegmentationParams(BitReader br) {<NEW_LINE>segmentationEnabled = br.read1Bit() == 1;<NEW_LINE>if (segmentationEnabled) {<NEW_LINE>if (br.read1Bit() == 1) {<NEW_LINE>for (int i = 0; i < 7; i++) segmentationTreeProbs[i] = readProb(br);<NEW_LINE>int segmentationTemporalUpdate = br.read1Bit();<NEW_LINE>fo...
1 ? readProb(br) : 255;
1,855,184
public static void main(final String[] args) {<NEW_LINE>final MediaDriver driver = EMBEDDED_MEDIA_DRIVER ? MediaDriver.launchEmbedded() : null;<NEW_LINE>final Aeron.Context ctx = new Aeron.Context();<NEW_LINE>if (EMBEDDED_MEDIA_DRIVER) {<NEW_LINE>ctx.aeronDirectoryName(driver.aeronDirectoryName());<NEW_LINE>}<NEW_LINE>...
ctx.unavailableImageHandler(SamplesUtil::printUnavailableImage);
1,206,947
public int codePointBefore(int index) {<NEW_LINE>int currentLength = lengthInternal();<NEW_LINE>if (index > 0 && index <= currentLength) {<NEW_LINE>// Check if the StringBuilder is compressed<NEW_LINE>if (String.COMPACT_STRINGS && count >= 0) {<NEW_LINE>return helpers.byteToCharUnsigned(helpers.getByteFromArrayByIndex(...
low = value[index - 1];
21,703
final ListImportsResult executeListImports(ListImportsRequest listImportsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listImportsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<ListImportsRequest> reques...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
523,710
private void checkPartitionNames() throws AnalysisException {<NEW_LINE>if (optPartitionNames != null) {<NEW_LINE>optPartitionNames.analyze(analyzer);<NEW_LINE>if (optTableName != null) {<NEW_LINE>Database db = analyzer.getEnv().getInternalCatalog().getDbOrAnalysisException(optTableName.getDb());<NEW_LINE>OlapTable olap...
addAll(optPartitionNames.getPartitionNames());
1,462,930
protected void addStoreAfter(Block pred, @Nullable Node node, S s, boolean addBlockToWorklist) {<NEW_LINE>// If the block pred is an exception block, decide whether the block of passing node is an<NEW_LINE>// exceptional successor of the block pred<NEW_LINE>TypeMirror excSuccType = getSuccExceptionType(pred, node);<NEW...
(node, this, newPredOutStore));
206,481
private static void addEntryCondition(List<BuiltCondition> conditions, QueryContext context) {<NEW_LINE>JsonNode entryKey, entryValue;<NEW_LINE>if (!context.value.isObject() || context.value.size() != 2 || (entryKey = context.value.get("key")) == null || (entryValue = context.value.get("value")) == null) {<NEW_LINE>thr...
.fieldName, context.rawOp));
481,506
public Object visitar(ValorTreeNode no) {<NEW_LINE>StringBuilder sb = new StringBuilder("<html>[");<NEW_LINE>sb.append(no.getPosicao()).append("]");<NEW_LINE>Icon icon = getIcon(no.getTipoDado(), false);<NEW_LINE>if (no.getValor() != null) {<NEW_LINE>Object valor = no.getValor();<NEW_LINE>if (valor instanceof Boolean) ...
Boolean) valor) ? "verdadeiro" : "falso";
1,715,070
void collectScheduledMethods(BeanRegistrationPhaseBuildItem beanRegistrationPhase, BuildProducer<ScheduledBusinessMethodItem> scheduledBusinessMethods) {<NEW_LINE>AnnotationStore annotationStore = beanRegistrationPhase.getContext().get(BuildExtension.Key.ANNOTATION_STORE);<NEW_LINE>for (BeanInfo bean : beanRegistration...
schedules = Collections.singletonList(scheduledAnnotation);
93,041
private static int listDFSPaths() {<NEW_LINE>Date alpha = new Date();<NEW_LINE>int inodeCount = 0;<NEW_LINE>String basePath = new String(TEST_BASE_DIR) + "/" + hostName_ + "_" + processName_;<NEW_LINE>Queue<String> pending = new LinkedList<String>();<NEW_LINE>pending.add(basePath);<NEW_LINE>while (!pending.isEmpty()) {...
, timeDiffMilliSec(alpha, zigma));
880,671
public ServerAuthorConfigurationResponse configureAllAccessServices(String userId, String serverName, String serverToBeConfiguredName, Map<String, Object> accessServiceOptions) {<NEW_LINE>final String methodName = "configureAllAccessServices";<NEW_LINE>RESTCallToken token = restCallLogger.logRESTCall(serverName, userId...
getStoredConfiguration(userId, serverName, serverToBeConfiguredName);
1,109,206
private Optional<ConfiguredStatement<CreateSource>> injectForCreateStatement(final ConfiguredStatement<CreateSource> original) {<NEW_LINE>final CreateSource statement = original.getStatement();<NEW_LINE>final CreateSourceProperties properties = statement.getProperties();<NEW_LINE>final Optional<FormatInfo> keyFormat = ...
).getElements(), injectedProps);
1,040,971
public static void main(String[] args) {<NEW_LINE>int size = args.length == 1 ? Integer.parseInt(args[0]) : 8;<NEW_LINE>int[][] array = new int[size][size];<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>Arrays.setAll(array[i], (index) -> index);<NEW_LINE>}<NEW_LINE>printArray(array);<NEW_LINE>TornadoDevice device ...
resolveEvent(readEvent).waitOn();
143,198
private void online(Tuple2<DataSet<Vector>, DataSet<BaseVectorSummary>> dataAndStat, int numTopic, int numIter, double alpha, double beta, DataSet<DocCountVectorizerModelData> resDocCountModel, int gammaShape, Integer seed) {<NEW_LINE>if (beta == -1) {<NEW_LINE>beta = 1.0 / numTopic;<NEW_LINE>}<NEW_LINE>if (alpha == -1...
LdaModelDataConverter().getModelSchema());
1,568,475
protected List<String> buildJvmArguments() {<NEW_LINE>List<String> jvmArguments = new ArrayList<>();<NEW_LINE>String systemPropertyDevMode = "-D" + NinjaConstant.MODE_KEY_NAME + "=" + mode;<NEW_LINE>jvmArguments.add(systemPropertyDevMode);<NEW_LINE>if (port != null) {<NEW_LINE>String portSelection = "-D" <MASK><NEW_LIN...
+ Standalone.KEY_NINJA_PORT + "=" + port;
1,740,513
private void writeMaterialGroups(JsonWriter json) throws IOException {<NEW_LINE>// groups<NEW_LINE>json.name("groups").beginArray();<NEW_LINE>if (size > 0) {<NEW_LINE>int miSize = size * FI_MATERIAL_INDEX, lastMaterial = materialIndex[0], material = lastMaterial, groupStart = 0;<NEW_LINE>json.beginObject();<NEW_LINE>js...
(miSize - groupStart) * 3);
1,788,085
private void buildNewSlotEqSlotPredicate(List<Pair<Integer, Integer>> newSlots, Map<Integer, Expr> warshallArraySubscriptToExpr, List<Expr> slotEqSlotExpr, Set<Pair<Expr, Expr>> slotEqSlotDeDuplication, Analyzer analyzer, ExprRewriter.ClauseType clauseType) {<NEW_LINE>for (Pair<Integer, Integer> slotPair : newSlots) {<...
get(slotPair.second)));
1,280,965
final DescribeQueryResult executeDescribeQuery(DescribeQueryRequest describeQueryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeQueryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<DescribeQueryReq...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
686,949
public void onEvent(Event event) throws Exception {<NEW_LINE>if (event == null)<NEW_LINE>return;<NEW_LINE>if (logout == event.getTarget()) {<NEW_LINE>cleanup();<NEW_LINE>Objects.requireNonNull(SessionManager.getApplication()).logout();<NEW_LINE>} else if (role == event.getTarget()) {<NEW_LINE>String roleInfo = MRole.ge...
replace(Env.NL, "<br>");
1,451,070
public boolean applyLimitsToMatrix() {<NEW_LINE>// Do not continue if matrix has no translations or scales applied to it. (This is an optimization.)<NEW_LINE>if (this.matrix.isIdentity()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// Fetch matrix values.<NEW_LINE>float[] matrixValues = new float[9];<NEW_LINE>this.mat...
postTranslate(0, translateY - maxTranslateY);
1,124,094
public void runAsSystemUser() throws SiteWhereException {<NEW_LINE>Period missingInterval;<NEW_LINE>try {<NEW_LINE>missingInterval = Period.parse(getPresenceMissingInterval(), ISOPeriodFormat.standard());<NEW_LINE>} catch (IllegalArgumentException e) {<NEW_LINE>missingInterval = <MASK><NEW_LINE>}<NEW_LINE>int missingIn...
PERIOD_FORMATTER.parsePeriod(getPresenceMissingInterval());
1,260,114
final DeleteWirelessGatewayTaskResult executeDeleteWirelessGatewayTask(DeleteWirelessGatewayTaskRequest deleteWirelessGatewayTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteWirelessGatewayTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
700,823
public DDOrderMoveSchedule createScheduleToMove(@NonNull final DDOrderMoveScheduleCreateRequest request) {<NEW_LINE>final I_DD_Order_MoveSchedule record = <MASK><NEW_LINE>// record.setAD_Org_ID(ddOrderline.getAD_Org_ID());<NEW_LINE>record.setDD_Order_ID(request.getDdOrderId().getRepoId());<NEW_LINE>record.setDD_OrderLi...
InterfaceWrapperHelper.newInstance(I_DD_Order_MoveSchedule.class);
1,842,101
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// authentication with an API key or named user is required to access basemaps and other<NEW_LINE>// location services<NEW_LINE>ArcGISRuntimeEnvironment.setApiKey(B...
10010.0, 10.0, 80.0, 0.0);
488,123
public void highlight(Region r_) {<NEW_LINE>// change due to oracle blog: https://blogs.oracle.com/thejavatutorials/entry/translucent_and_shaped_windows_in<NEW_LINE>if (!_isTransparentSupported) {<NEW_LINE>Debug.error("highlight transparent is not support on " + System.getProperty("os.name") + "!");<NEW_LINE>// use at ...
r = r_.grow(3);
156,930
public <T extends Throwable> RuntimeException sanitize(T error) {<NEW_LINE>if (error instanceof QueryException) {<NEW_LINE>return (QueryException) errorResponseTransformStrategy.transformIfNeeded((QueryException) error);<NEW_LINE>}<NEW_LINE>if (error instanceof ForbiddenException) {<NEW_LINE>return (ForbiddenException)...
transformIfNeeded((SanitizableException) error));
483,080
public ContractVersion copy(Contract contract) {<NEW_LINE>ContractVersion newVersion = new ContractVersion();<NEW_LINE>ContractVersion currentVersion = contract.getCurrentContractVersion();<NEW_LINE>newVersion.setStatusSelect(ContractVersionRepository.DRAFT_VERSION);<NEW_LINE>newVersion.setNextContract(contract);<NEW_L...
setAutomaticInvoicing(currentVersion.getAutomaticInvoicing());
733,152
public BatchPartResponse createBatchPartResponse(BatchPart batchPart, RestUrlBuilder urlBuilder) {<NEW_LINE>BatchPartResponse response = new BatchPartResponse();<NEW_LINE>response.setId(batchPart.getId());<NEW_LINE>response.setBatchId(batchPart.getBatchId());<NEW_LINE>response.setBatchType(batchPart.getBatchType());<NE...
setSearchKey2(batchPart.getBatchSearchKey2());
106,678
ColumnDefinition decodeColumnDefinitionPacketPayload(ByteBuf payload) {<NEW_LINE>String catalog = BufferUtils.readLengthEncodedString(payload, StandardCharsets.UTF_8);<NEW_LINE>String schema = BufferUtils.readLengthEncodedString(payload, StandardCharsets.UTF_8);<NEW_LINE>String table = BufferUtils.readLengthEncodedStri...
lengthOfFixedLengthFields = BufferUtils.readLengthEncodedInteger(payload);
1,356,039
private Mono<Response<MetricAlertStatusCollectionInner>> listByNameWithResponseAsync(String resourceGroupName, String ruleName, String statusName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required...
error(new IllegalArgumentException("Parameter ruleName is required and cannot be null."));
88,925
final ListMembersResult executeListMembers(ListMembersRequest listMembersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listMembersRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListMembersRequest> request = null;<NEW_LINE>Respo...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();