idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
45,864
final CreateJobResult executeCreateJob(CreateJobRequest createJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
190,544
public double price(ResolvedFxVanillaOption option, RatesProvider ratesProvider, BlackFxOptionSmileVolatilities volatilities) {<NEW_LINE>validate(ratesProvider, volatilities);<NEW_LINE>double timeToExpiry = volatilities.relativeTime(option.getExpiry());<NEW_LINE>if (timeToExpiry <= 0d) {<NEW_LINE>return 0d;<NEW_LINE>}<...
getSmile().smileForExpiry(timeToExpiry);
246,696
static void fillMenu(JPopupMenu popup, JMenu menu) {<NEW_LINE>assert null != popup || null != menu;<NEW_LINE>FilterRepository filterRep = FilterRepository.getDefault();<NEW_LINE>TaskManagerImpl tm = TaskManagerImpl.getInstance();<NEW_LINE>TaskFilter activeFilter = tm.getFilter();<NEW_LINE>JRadioButtonMenuItem item = <M...
new JRadioButtonMenuItem(new CancelFilterAction());
526,247
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
384,163
private void addTaxLossAdjustmentAccountStatementTransaction() {<NEW_LINE>DocumentType type = new DocumentType("KONTOAUSZUG");<NEW_LINE>this.addDocumentTyp(type);<NEW_LINE>Block block = new Block("^[\\d]{1,2}\\.[\\d]{1,2} KESt\\-Verlustausgleich .*$");<NEW_LINE>type.addBlock(block);<NEW_LINE>Transaction<AccountTransact...
v.get("year")));
1,184,844
public double differentiateX0(PiecewisePolynomialResult2D pp, double x0Key, double x1Key) {<NEW_LINE>ArgChecker.notNull(pp, "pp");<NEW_LINE>int order0 = pp.getOrder()[0];<NEW_LINE>int order1 = pp.getOrder()[1];<NEW_LINE>ArgChecker.<MASK><NEW_LINE>DoubleArray knots0 = pp.getKnots0();<NEW_LINE>DoubleArray knots1 = pp.get...
isFalse(order0 < 2, "polynomial degree of x0 < 1");
1,584,459
public UnknownWordModel finishTraining() {<NEW_LINE>// Map<String,Float> unknownGT = null;<NEW_LINE>if (useGT) {<NEW_LINE>unknownGTTrainer.finishTraining();<NEW_LINE>// unknownGT = unknownGTTrainer.unknownGT;<NEW_LINE>}<NEW_LINE>for (Label tagLab : c.keySet()) {<NEW_LINE>// outer iteration is over tags as Labels<NEW_LI...
, new ClassicCounter<>());
432,412
public static Paragraph constructTitle(Paragraph title, java.util.List<Integer> numbers, int numberDepth, int numberStyle) {<NEW_LINE>if (title == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int depth = Math.min(numbers.size(), numberDepth);<NEW_LINE>if (depth < 1) {<NEW_LINE>return title;<NEW_LINE>}<NEW_LINE>Str...
buf.insert(0, ".");
761,647
private static void mapStoreConfigXmlGenerator(ConfigXmlGenerator.XmlGenerator gen, MapConfig m) {<NEW_LINE>if (m.getMapStoreConfig() != null) {<NEW_LINE>MapStoreConfig s = m.getMapStoreConfig();<NEW_LINE>String clazz = s.getImplementation() != null ? s.getImplementation().getClass().getName() : s.getClassName();<NEW_L...
() : s.getFactoryClassName();
831,679
public static void registerTiles(BiConsumer<BlockEntityType<?>, ResourceLocation> r) {<NEW_LINE>r.accept(ALTAR, prefix(LibBlockNames.ALTAR));<NEW_LINE>r.accept(SPREADER, prefix(LibBlockNames.SPREADER));<NEW_LINE>r.accept(POOL, prefix(LibBlockNames.POOL));<NEW_LINE>r.accept(RUNE_ALTAR, prefix(LibBlockNames.RUNE_ALTAR));...
, prefix(LibBlockNames.CORPOREA_FUNNEL));
431,420
static double[][] of(float[] data, float[] breaks) {<NEW_LINE><MASK><NEW_LINE>if (k <= 1) {<NEW_LINE>throw new IllegalArgumentException("Invalid number of bins: " + k);<NEW_LINE>}<NEW_LINE>double[][] freq = new double[3][k];<NEW_LINE>for (int i = 0; i < k; i++) {<NEW_LINE>freq[0][i] = breaks[i];<NEW_LINE>freq[1][i] = b...
int k = breaks.length - 1;
81,057
private boolean drainFullContainer() {<NEW_LINE>final int input = getSlotDefinition().getMinInputSlot();<NEW_LINE>final ItemStack inputStack = getStackInSlot(input);<NEW_LINE>if (Prep.isInvalid(inputStack) || tank.isFull()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>IMachineRecipe recipe = null;<NEW_LINE>FluidAndStac...
final ItemStack outputStack = getStackInSlot(output);
935,588
private static MethodDescriptor devirtualizeMethodDescriptor(MethodDescriptor methodDescriptor, DeclaredTypeDescriptor targetTypeDescriptor, Optional<String> postfix) {<NEW_LINE>DeclaredTypeDescriptor enclosingTypeDescriptor = methodDescriptor.getEnclosingTypeDescriptor();<NEW_LINE>String devirtualizedMethodName = meth...
(), targetTypeDescriptor, postfix));
440,185
static GlobalMetaData mergeInto(FileMetaData toMerge, GlobalMetaData mergedMetadata, boolean strict) {<NEW_LINE>MessageType schema = null;<NEW_LINE>Map<String, Set<String>> newKeyValues = new HashMap<String, Set<String>>();<NEW_LINE>Set<String> createdBy = new HashSet<String>();<NEW_LINE>if (mergedMetadata != null) {<N...
entry.getKey(), values);
190,404
public static void registerFarmers(@Nonnull RegistryEvent.Register<IFarmerJoe> event) {<NEW_LINE>event.getRegistry().register(new FlowerPicker(FLOWERS).setPriority(EventPriority.LOW).setRegistryName(EnderIO.DOMAIN, "flowers"));<NEW_LINE>event.getRegistry().register(new StemFarmer(Blocks.REEDS, new ItemStack(Items.REEDS...
(EnderIO.DOMAIN, "trees"));
1,198,642
final GetCostForecastResult executeGetCostForecast(GetCostForecastRequest getCostForecastRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCostForecastRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetCostForecast");
1,265,395
public void execute() throws UserException {<NEW_LINE>String body = null;<NEW_LINE>try {<NEW_LINE>if (MailSystem.isValidEmailAddress(user.getUsername())) {<NEW_LINE>EmailMessage message = bimServer.getMailSystem().createMessage();<NEW_LINE>String emailSenderAddress = serverSettings.getEmailSenderAddress();<NEW_LINE>Int...
] addressTo = new InternetAddress[1];
590,573
protected boolean commitChangeImpl(RepositoryModel repository, long ticketId, Change change) {<NEW_LINE>Jedis jedis = pool.getResource();<NEW_LINE>if (jedis == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>List<Change> changes = getJournal(jedis, repository, ticketId);<NEW_LINE>changes.add(change);<...
"failed to update ticket cache in Redis @ " + getUrl(), e);
1,851,335
public static void changeTypeName(final CtType<?> type, String name) {<NEW_LINE>// first we remove the type from the list of types<NEW_LINE>// to be pretty-printed<NEW_LINE>if (type.isTopLevel()) {<NEW_LINE>type.getFactory().CompilationUnit().removeType(type);<NEW_LINE>}<NEW_LINE>final String typeQFN = type.getQualifie...
CompilationUnit().addType(type);
222,451
public Message deserialize(DirectByteBuffer data, byte version) throws MessageException {<NEW_LINE>if (data.remaining(bss) > 2000)<NEW_LINE>System.out.println("Received PEX msg byte size = " + data.remaining(bss));<NEW_LINE>Map root = MessagingUtil.convertBencodedByteStreamToPayload(data, 10, getID());<NEW_LINE>byte[] ...
dropped = extractPeers("dropped", root);
218,782
public void run(FlowTrigger trigger, Map data) {<NEW_LINE>PrimaryStorageAllocationSpec spec = (PrimaryStorageAllocationSpec) data.get(PrimaryStorageConstant.AllocatorParams.SPEC);<NEW_LINE>if (spec.getImageUuid() == null) {<NEW_LINE>trigger.next();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<PrimaryStorageVO> candidates ...
), result.defaultPriority)));
1,032,879
protected void processPingResponse(WsByteBuffer data) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "processPingResponse", data);<NEW_LINE>// We should never get a ping response - so ignore it unless debug is on.<NEW_LINE>// If it is, then dump out some infor...
long pingTime = data.getLong();
161,242
public okhttp3.Call applicationsApplicationIdKeysKeyTypeGetCall(String applicationId, String keyType, String groupId, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/applications/{applicationId}/keys/{...
= new String[] { "OAuth2Security" };
1,572,246
private ArtifactNotification filterSetByPaths(Set<String> paths, Collection<String> filterBy) {<NEW_LINE>Set<String> pathsToAdd = new HashSet<String>();<NEW_LINE>for (String path : paths) {<NEW_LINE>for (String filter : filterBy) {<NEW_LINE>boolean nonRecurse = filter.startsWith("!");<NEW_LINE>if (nonRecurse) {<NEW_LIN...
= new DefaultArtifactNotification(root, pathsToAdd);
1,610,075
public double calcEdgeWeight(EdgeIteratorState edgeState, boolean reverse) {<NEW_LINE>double speed = reverse ? edgeState.getReverse(avSpeedEnc) : edgeState.get(avSpeedEnc);<NEW_LINE>if (speed == 0)<NEW_LINE>return Double.POSITIVE_INFINITY;<NEW_LINE>double time = edgeState.getDistance() / speed * SPEED_CONV;<NEW_LINE>if...
access = edgeState.get(roadAccessEnc);
163,746
private static Unbinder parseOnPageChange(final Object target, final Method method, View source) {<NEW_LINE>OnPageChange onPageChange = <MASK><NEW_LINE>if (onPageChange == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>validateMember(method);<NEW_LINE>validateReturnType(method, void.class);<NEW_LINE>List<ViewPager> ...
method.getAnnotation(OnPageChange.class);
191,244
public void initEventSerializerManager() {<NEW_LINE>if (this.eventSerializerManager == null) {<NEW_LINE>this.eventSerializerManager = new DefaultChannelProcessingPipelineManager();<NEW_LINE>}<NEW_LINE>initDefaultEventDeserializers();<NEW_LINE>for (String deserializerType : defaultEventDeserializers.keySet()) {<NEW_LINE...
channelDeserializerMap = channelEventDeserializers.get(channelType);
1,834,694
<Temp extends Temporal> Temp assignAllFields(Temp temp) {<NEW_LINE>Temp result = temp;<NEW_LINE>for (Map.Entry<TemporalFields, AnyValue> entry : fields.entrySet()) {<NEW_LINE>TemporalFields f = entry.getKey();<NEW_LINE>if (f == TemporalFields.year && fields.containsKey(TemporalFields.week)) {<NEW_LINE>// Year can mean ...
(), f.defaultValue));
1,617,728
/* Need tests<NEW_LINE>public static Pointer loadFromBytes(byte[] buf, int offset, int size) {<NEW_LINE><MASK><NEW_LINE>memory.write(0, buf, offset, size);<NEW_LINE><NEW_LINE>PointerByReference ref = new PointerByReference();<NEW_LINE>checkCall(LIB.MXNDArrayLoadFromRawBytes(memory, new NativeSize(size), ref));<NEW_LINE...
Memory memory = new Memory(size);
287,417
public Object gridConvertAfterLoad(final Info_Column infoColumn, final int rowIndexModel, final int rowRecordId, final Object data) {<NEW_LINE>if (Util.same(infoColumn, qtyInfoColumn)) {<NEW_LINE>final IHUPackingAware rowRecord = <MASK><NEW_LINE>final IHUPackingAware record = getSavedHUPackingAware(rowRecord);<NEW_LINE...
packingAwareBL.create(infoWindow, rowIndexModel);
336,498
private void loadColumnsStrategies() {<NEW_LINE>JPanel strategiesPanel = new JPanel();<NEW_LINE>strategiesPanel.setLayout(new MigLayout("fillx"));<NEW_LINE>if (duplicateGroups != null && duplicateGroups.size() > 0) {<NEW_LINE>strategiesPanel.add(new JLabel(NbBundle.getMessage(MergeNodeDuplicatesUI.class, "MergeNodeDupl...
strategiesPanel.add(strategyComboBox, "growx, wrap 15px");
1,490,076
public Result importUniverse(UUID customerUUID) {<NEW_LINE>// Get the submitted form data.<NEW_LINE>Form<ImportUniverseFormData> formData = formFactory.getFormDataOrBadRequest(ImportUniverseFormData.class);<NEW_LINE>if (formData.hasErrors()) {<NEW_LINE>return ApiResponse.error(BAD_REQUEST, formData.errorsAsJson());<NEW...
importForm.currentState.toString());
1,496,255
private SingleOutputStreamOperator<WriteResult> appendWriter(DataStream<RowData> input, RowType flinkRowType, List<Integer> equalityFieldIds) {<NEW_LINE>// Fallback to use upsert mode parsed from table properties if don't specify in job level.<NEW_LINE>boolean upsertMode = upsert || PropertyUtil.propertyAsBoolean(table...
? input.getParallelism() : writeParallelism;
120,301
public void registerJ2eePlatformListener(final J2eePlatform platform) {<NEW_LINE>// listen to classpath changes<NEW_LINE>j2eePlatformListener = new PropertyChangeListener() {<NEW_LINE><NEW_LINE>public void propertyChange(PropertyChangeEvent evt) {<NEW_LINE>if (evt.getPropertyName().equals(J2eePlatform.PROP_CLASSPATH)) ...
helper.getProperties(AntProjectHelper.PRIVATE_PROPERTIES_PATH);
170,711
protected Collection<Match<Either<SymbolInformation, DocumentSymbol>>> compute() {<NEW_LINE><MASK><NEW_LINE>if (!StringUtil.hasText(query)) {<NEW_LINE>query = "";<NEW_LINE>}<NEW_LINE>query = query.toLowerCase();<NEW_LINE>List<Match<Either<SymbolInformation, DocumentSymbol>>> matches = new ArrayList<>();<NEW_LINE>for (E...
String query = searchBox.getValue();
1,356,309
public ECPoint twicePlus(ECPoint b) {<NEW_LINE>if (this.isInfinity()) {<NEW_LINE>return b;<NEW_LINE>}<NEW_LINE>if (b.isInfinity()) {<NEW_LINE>return twice();<NEW_LINE>}<NEW_LINE>ECCurve curve = this.getCurve();<NEW_LINE>ECFieldElement X1 = this.x;<NEW_LINE>if (X1.isZero()) {<NEW_LINE>// A point with X == 0 is its own a...
Z2 = b.getZCoord(0);
617,717
private void loadNode189() {<NEW_LINE>TransitionTypeNode node = new TransitionTypeNode(this.context, Identifiers.ProgramStateMachineType_RunningToSuspended, new QualifiedName(0, "RunningToSuspended"), new LocalizedText("en", "RunningToSuspended"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), UByt...
.expanded(), false));
179,381
public Object interceptValidateRequest(InvocationContext ic) throws Exception {<NEW_LINE>AuthenticationStatus status;<NEW_LINE>Method method = ic.getMethod();<NEW_LINE>if ("validateRequest".equals(method.getName())) {<NEW_LINE>Object[<MASK><NEW_LINE>HttpMessageContext httpMessageContext = (HttpMessageContext) params[2]...
] params = ic.getParameters();
244,045
private RexNode convertResolvedParameter(ResolvedParameter parameter) {<NEW_LINE>Value value;<NEW_LINE>switch(queryParams.getKind()) {<NEW_LINE>case NAMED:<NEW_LINE>value = ((Map<String, Value>) queryParams.named()).<MASK><NEW_LINE>break;<NEW_LINE>case POSITIONAL:<NEW_LINE>// parameter is 1-indexed, while parameter lis...
get(parameter.getName());
466,806
private Flux<ReactiveRedisConnection.CommandResponse<RangeCommand, Flux<ByteBufferRecord>>> range(RedisCommand<?> rangeCommand, Publisher<RangeCommand> publisher) {<NEW_LINE>return execute(publisher, command -> {<NEW_LINE>Assert.notNull(command.getKey(), "Key must not be null!");<NEW_LINE>Assert.notNull(command.getRang...
().orElse("-"));
810,968
private static double calculateResourceFitness(TaskRequest request, VirtualMachineCurrentState targetVM, TaskTrackerState taskTrackerState, Func1<TaskRequest, Double> taskResourceGetter, Func1<VirtualMachineLease, Double> leaseResourceGetter) {<NEW_LINE>double totalRes = leaseResourceGetter.<MASK><NEW_LINE>Iterator<Tas...
call(targetVM.getCurrAvailableResources());
1,443,988
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>log("onCreate.");<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// Create the client used to sign in.<NEW_LINE>mGoogleSignInClient = GoogleSignIn.getClient(this, // Since we are using SavedGames, we ne...
gameplay_rating)).setOnRatingBarChangeListener(this);
1,845,791
public void run() {<NEW_LINE>// -----------------------------------------------------------------------------------------------------<NEW_LINE>// 10. Loader pool loading<NEW_LINE>try {<NEW_LINE>NbLoaderPool.load();<NEW_LINE>} catch (IOException ioe) {<NEW_LINE>Logger.getLogger(GuiRunLevel.class.getName()).log(<MASK><NE...
Level.INFO, null, ioe);
1,722,546
final UpdateVolumeResult executeUpdateVolume(UpdateVolumeRequest updateVolumeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateVolumeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
318,105
public List<SchemaRule> loadSchemaRules(FileSystemAbstraction fs, PageCache pageCache, Config config, DatabaseLayout layout, CursorContext cursorContext) {<NEW_LINE>RecordDatabaseLayout databaseLayout = convert(layout);<NEW_LINE>StoreFactory factory = new StoreFactory(databaseLayout, config, new DefaultIdGeneratorFacto...
rules = new ArrayList<>();
1,355,509
protected ExecutionEntity migrateExecutionEntity(ExecutionEntity parentExecutionEntity, ExecutionEntity childExecution, FlowElement newFlowElement, CommandContext commandContext) {<NEW_LINE>ProcessEngineConfigurationImpl processEngineConfiguration = CommandContextUtil.getProcessEngineConfiguration(commandContext);<NEW_...
Activity) newFlowElement).getBoundaryEvents();
1,483,530
public VolumeInfo copyVolumeFromSecToPrimary(VolumeInfo volume, VirtualMachine vm, VirtualMachineTemplate template, DataCenter dc, Pod pod, Long clusterId, ServiceOffering offering, DiskOffering diskOffering, List<StoragePool> avoids, long size, HypervisorType hyperType) throws NoTransitionException {<NEW_LINE>final Ha...
volume, template, dc, diskOffering);
678,575
public static void convertScheduleToString(HandlerContext handlerCtx) {<NEW_LINE>Map<String, String> map = (<MASK><NEW_LINE>String delimiter = (String) handlerCtx.getInputValue("delimiter");<NEW_LINE>String type = (String) handlerCtx.getInputValue("type");<NEW_LINE>if (delimiter == null)<NEW_LINE>delimiter = ",";<NEW_L...
Map) handlerCtx.getInputValue("map");
936,734
public InputData<Key, Value> readData(@Nonnull Input content) throws IOException {<NEW_LINE>int hashId = getHashId(content);<NEW_LINE>Map<Key, Value> data = doReadData(hashId);<NEW_LINE>if (data != null && DebugAssertions.EXTRA_SANITY_CHECKS) {<NEW_LINE>Map<Key, Value> contentData = myIndexer.map(content);<NEW_LINE>boo...
sameValueForSavedIndexedResultAndCurrentOne = contentData.equals(data);
1,434,448
public void readFields(DataInput in) throws IOException {<NEW_LINE>if (!isJobTypeRead) {<NEW_LINE>jobType = EtlJobType.valueOf<MASK><NEW_LINE>isJobTypeRead = true;<NEW_LINE>}<NEW_LINE>id = in.readLong();<NEW_LINE>dbId = in.readLong();<NEW_LINE>label = Text.readString(in);<NEW_LINE>state = JobState.valueOf(Text.readStri...
(Text.readString(in));
523,119
final DescribeLoadBalancersResult executeDescribeLoadBalancers(DescribeLoadBalancersRequest describeLoadBalancersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeLoadBalancersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
972,283
private void activatePanelElements(TournamentTypeView tournamentType) {<NEW_LINE>this.pnlDraftOptions.setVisible(tournamentType.isDraft());<NEW_LINE>this.lblNumRounds.setVisible(!tournamentType.isElimination());<NEW_LINE>this.spnNumRounds.setVisible(!tournamentType.isElimination());<NEW_LINE>this.lblConstructionTime.se...
this.pnlRandomPacks.setVisible(false);
92,612
public Block readBlock(BlockEncodingSerde blockEncodingSerde, SliceInput sliceInput) {<NEW_LINE>Block <MASK><NEW_LINE>Block valueBlock = blockEncodingSerde.readBlock(sliceInput);<NEW_LINE>int hashTableLength = sliceInput.readInt();<NEW_LINE>int[] hashTable = null;<NEW_LINE>if (hashTableLength >= 0) {<NEW_LINE>hashTable...
keyBlock = blockEncodingSerde.readBlock(sliceInput);
3,635
public static void resolveSymbolMetaData(Type type, Symbol symbol) {<NEW_LINE>ModuleID moduleID = symbol.getModule().isPresent() ? symbol.getModule().get().id() : null;<NEW_LINE>if (moduleID != null) {<NEW_LINE>type.moduleName = moduleID.moduleName();<NEW_LINE>type.orgName = moduleID.orgName();<NEW_LINE>type<MASK><NEW_...
.version = moduleID.version();
1,117,153
private static void tryAssertion17(RegressionEnvironment env, String stmtText, String outputLimit, AtomicInteger milestone) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>env.compileDeploy(stmtText).addListener("s0");<NEW_LINE>String[] fields = new String[] { "symbol", "volume", "sum(price)" };<NEW_LINE>ResultAssertTestResult ...
"YAH", 10000L, 1d } });
739,614
private String formatHexLine(byte[] bytes) {<NEW_LINE>String rawHex = BaseEncoding.base16().encode(bytes);<NEW_LINE>// Adds spaces between hex representation of each char<NEW_LINE>String separatedHex = Joiner.on(' ').join(Splitter.fixedLength(2).split(rawHex));<NEW_LINE>// Adds extra space between each block of 8 hex b...
format("%-50s|%-17s|", groupedHex, splitText);
1,634,976
public AssetModelHierarchyDefinition unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AssetModelHierarchyDefinition assetModelHierarchyDefinition = new AssetModelHierarchyDefinition();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren...
class).unmarshall(context));
357,589
public static boolean checkOffsets(CoreMap docAnnotation) {<NEW_LINE>boolean okay = true;<NEW_LINE>String docText = docAnnotation.get(CoreAnnotations.TextAnnotation.class);<NEW_LINE>String docId = docAnnotation.get(CoreAnnotations.DocIDAnnotation.class);<NEW_LINE>List<CoreLabel> docTokens = docAnnotation.get(CoreAnnota...
logger.debug("DocSpanTokens: " + docTokenStr);
1,130,313
Fixer match(ExpressionTree tree, VisitorState state) {<NEW_LINE>if (EXTENSION_METHODS_WITH_NO_FIX.matches(tree, state)) {<NEW_LINE>return GetterTypes::emptyFix;<NEW_LINE>}<NEW_LINE>if (EXTENSION_METHODS_WITH_FIX.matches(tree, state)) {<NEW_LINE>// If the extension represents a repeated field (i.e.: it's an ExtensionLit...
).asSuper(argumentType, extension);
707,468
private void registerStandardImportProcesses() {<NEW_LINE>final IImportProcessFactory importProcessesFactory = <MASK><NEW_LINE>importProcessesFactory.registerImportProcess(I_I_BPartner.class, BPartnerImportProcess.class);<NEW_LINE>importProcessesFactory.registerImportProcess(I_I_User.class, ADUserImportProcess.class);<...
Services.get(IImportProcessFactory.class);
75,402
private static List<Chunk> loadHLS(String id) {<NEW_LINE>System.out.println("loading http chunk " + id);<NEW_LINE>ArrayList<Chunk> <MASK><NEW_LINE>BufferedReader br = null;<NEW_LINE>try {<NEW_LINE>DownloadEntry ent = XDMApp.getInstance().getEntry(id);<NEW_LINE>if (ent == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LIN...
list = new ArrayList<>();
1,818,634
public boolean apply(Game game, Ability source) {<NEW_LINE>Player targetPlayer = game.getPlayer(this.getTargetPointer().getFirst(game, source));<NEW_LINE>if (targetPlayer == null || targetPlayer.getHand().isEmpty()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (targetPlayer.getHand().count(StaticFilters.FILTER_CARD_...
Discard, target, source, game);
499,762
public Condition createPredicateDate(@Nullable DbColumn theSourceJoinColumn, String theResourceName, String theSpnamePrefix, RuntimeSearchParam theSearchParam, List<? extends IQueryParameterType> theList, SearchFilterParser.CompareOperation theOperation, RequestPartitionId theRequestPartitionId, SearchQueryBuilder theS...
DatePredicateBuilder predicateBuilder = predicateBuilderLookupResult.getResult();
1,324,723
public void uploadFileWithRequiredFile(Long petId, AsyncFile requiredFile, String additionalMetadata, ApiClient.AuthInfo authInfo, Handler<AsyncResult<ModelApiResponse>> resultHandler) {<NEW_LINE>Object localVarBody = null;<NEW_LINE>// verify the required parameter 'petId' is set<NEW_LINE>if (petId == null) {<NEW_LINE>...
MultiMap localVarCookieParams = MultiMap.caseInsensitiveMultiMap();
1,604,661
protected void populateCommonFields(SearchExecutionContext context, SuggestionSearchContext.SuggestionContext suggestionContext) {<NEW_LINE>Objects.requireNonNull(field, "field must not be null");<NEW_LINE>if (context.isFieldMapped(field) == false) {<NEW_LINE>throw new IllegalArgumentException("no mapping found for fie...
getIndexAnalyzers().get(analyzer);
1,442,912
private synchronized void executeNotifications(Payload payloadChange) {<NEW_LINE>if (diffResult != null) {<NEW_LINE>log.i("Dispatching notifications");<NEW_LINE>// Update mItems in the UI Thread<NEW_LINE>mItems = diffUtilCallback.getNewItems();<NEW_LINE>diffResult.dispatchUpdatesTo(this);<NEW_LINE>diffResult = null;<NE...
notifyItemChanged(notification.position, payloadChange);
860,643
private void focusCurrentExpression() {<NEW_LINE>if (isFinished()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PsiDocumentManager.getInstance(myProject).commitDocument(myDocument);<NEW_LINE>final int currentSegmentNumber = getCurrentSegmentNumber();<NEW_LINE>lockSegmentAtTheSameOffsetIfAny();<NEW_LINE>if (currentSegmentNumb...
getCaretModel().moveToOffset(end);
410,500
public void create(Properties ctx, TransformerHandler document) throws SAXException {<NEW_LINE>int windowId = Env.getContextAsInt(ctx, "AD_Window_ID");<NEW_LINE>PackOut packOut = (<MASK><NEW_LINE>if (packOut == null) {<NEW_LINE>packOut = new PackOut();<NEW_LINE>packOut.setLocalContext(ctx);<NEW_LINE>}<NEW_LINE>// Task<...
PackOut) ctx.get("PackOutProcess");
1,176,849
public WebResourceResponse onShouldInterceptRequest(Object request) {<NEW_LINE>String url = request instanceof String ? (String) request : null;<NEW_LINE>String method = "GET";<NEW_LINE>Map<String, String> headers = null;<NEW_LINE>boolean hasGesture = false;<NEW_LINE>boolean isForMainFrame = true;<NEW_LINE>boolean isRe...
WebResourceResponse(contentType, contentEncoding, inputStream);
346,172
public void execute() {<NEW_LINE>EntityPlayerSP player <MASK><NEW_LINE>ActiveMagnet activeMagnet = MagnetController.getMagnet(player, false);<NEW_LINE>if (activeMagnet != null) {<NEW_LINE>boolean isActive = !ItemMagnet.isActive(activeMagnet.getItem());<NEW_LINE>PacketHandler.INSTANCE.sendToServer(new PacketMagnetState(...
= Minecraft.getMinecraft().player;
821,562
public static String formatDuration(long durationMillis, String format) {<NEW_LINE>Token[] tokens = lexx(format);<NEW_LINE>int days = 0;<NEW_LINE>int hours = 0;<NEW_LINE>int minutes = 0;<NEW_LINE>int seconds = 0;<NEW_LINE>int milliseconds = 0;<NEW_LINE>if (Token.containsTokenWithValue(tokens, d)) {<NEW_LINE>days = (int...
= durationMillis - (minutes * MILLIS_PER_MINUTE);
138,005
public Map<ReturnableData, Object> handle(final RequestWrapper request, final HttpSession session, final User user, final Game game) {<NEW_LINE>final Map<ReturnableData, Object> data = new HashMap<ReturnableData, Object>();<NEW_LINE>final String password = request.getParameter(AjaxRequest.PASSWORD);<NEW_LINE>final <MAS...
String gamePassword = game.getPassword();
927,993
private static JSFunctionObject createBufferGetterFunction(JSRealm realm) {<NEW_LINE>JSContext context = realm.getContext();<NEW_LINE>JSFunctionData getterData = context.getOrCreateBuiltinFunctionData(JSContext.BuiltinFunctionKey.WebAssemblyMemoryGetBuffer, (c) -> {<NEW_LINE>CallTarget callTarget = new JavaScriptRootNo...
thiz = JSFrameUtil.getThisObj(frame);
1,060,635
public void updateContent() {<NEW_LINE>List<GpxDisplayItem> items = TrackDisplayHelper.flatten(displayHelper.getOriginalGroups(filterTypes));<NEW_LINE>updateLocationOnMap(items);<NEW_LINE>recyclerView = view.findViewById(R.id.recycler_view);<NEW_LINE>recyclerView.setLayoutManager(new LinearLayoutManager(activity));<NEW...
findViewById(R.id.create_routes_btn);
1,037,017
public INDArray appendBias(INDArray... vectors) {<NEW_LINE>Preconditions.checkArgument(vectors != null && vectors.length > 0, "vectros must be not null and have at least one element");<NEW_LINE>int size = 0;<NEW_LINE>for (INDArray vector : vectors) {<NEW_LINE>size += vector.rows();<NEW_LINE>Preconditions.checkArgument(...
columns()) }, put);
766,144
private void saveSettings() {<NEW_LINE>restartRequired = false;<NEW_LINE>reconnectRequired = false;<NEW_LINE>saveStringSettings();<NEW_LINE>saveBooleanSettings();<NEW_LINE>saveIntegerSettings();<NEW_LINE>saveListSettings();<NEW_LINE>saveMapSettings();<NEW_LINE>owner.setUsercolorData(getPanel(UsercolorSettings.class).ge...
String[] { "Reconnect now", "Reconnect manually" };
882,258
private static void createAlignedTimeseries() throws StatementExecutionException, IoTDBConnectionException {<NEW_LINE>List<String> multiMeasurementComponents = new ArrayList<>();<NEW_LINE>for (int i = 1; i <= 2; i++) {<NEW_LINE>multiMeasurementComponents.add("s" + i);<NEW_LINE>}<NEW_LINE>List<TSDataType> dataTypes = ne...
encodings.add(TSEncoding.RLE);
153,710
public static QueryProfileRegistry createFromConfig(QueryProfilesConfig config) {<NEW_LINE>QueryProfileRegistry registry = new QueryProfileRegistry();<NEW_LINE>// Pass 1: Create all profiles and profile types<NEW_LINE>for (QueryProfilesConfig.Queryprofiletype profileTypeConfig : config.queryprofiletype()) {<NEW_LINE>cr...
profileConfig, config, registry, filled);
249,053
private WorkflowTrace createHandshakeWorkflow(AliasedConnection connection) {<NEW_LINE>WorkflowTrace workflowTrace = this.createHelloWorkflow(connection);<NEW_LINE>List<ProtocolMessage> <MASK><NEW_LINE>if (config.getHighestProtocolVersion().isTLS13()) {<NEW_LINE>if (Objects.equals(config.getTls13BackwardsCompatibilityM...
messages = new LinkedList<>();
1,808,003
public static PollTaskResultResponse unmarshall(PollTaskResultResponse pollTaskResultResponse, UnmarshallerContext context) {<NEW_LINE>pollTaskResultResponse.setRequestId(context.stringValue("PollTaskResultResponse.RequestId"));<NEW_LINE>pollTaskResultResponse.setTotalItemNum(context.integerValue("PollTaskResultRespons...
("PollTaskResultResponse.Data[" + i + "].DomainName"));
1,017,017
public Object userMinWithdrawalFee(String currency) throws TimeoutException, ExecutionException, InterruptedException, ApiException {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/user/minWithdrawalFee";<NEW_LINE>// query params<NEW_LINE>List<Pair> queryParams = new...
MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create();
1,497,333
public void testReceiveBodyByteMsg_TcpIp_SecOff(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>JMSContext jmsContext = jmsQCFTCP.createContext();<NEW_LINE>emptyQueue(jmsQCFTCP, jmsQueue);<NEW_LINE>byte[] msgOutBytes = new byte[] { 126, 1 };<NEW_LINE><MASK><NEW_LINE>msgOut.writeByt...
BytesMessage msgOut = jmsContext.createBytesMessage();
1,269,996
public static boolean lock(File file, Runnable runnable) {<NEW_LINE>try {<NEW_LINE>File lockFile = file;<NEW_LINE>if (lockFile.isDirectory()) {<NEW_LINE>lockFile = new File(lockFile, ".atlaslock");<NEW_LINE>}<NEW_LINE>RandomAccessFile randomAccessFile;<NEW_LINE>FileLock fileLock;<NEW_LINE>try {<NEW_LINE>randomAccessFil...
= new RandomAccessFile(lockFile, "rw");
1,193,746
public static OptionElement create(Option option, Method method, OptionValueNotationParserFactory optionValueNotationParserFactory) {<NEW_LINE>String optionName = assertValidOptionName(option, method.getName(<MASK><NEW_LINE>if (Property.class.isAssignableFrom(method.getReturnType())) {<NEW_LINE>assertCanUseMethodReturn...
), method.getDeclaringClass());
558,196
public static void start(ExecutionExceptionHandler errorHandler, PrintWriter errStream) {<NEW_LINE>ClassLoader originalCl = Thread.currentThread().getContextClassLoader();<NEW_LINE>try {<NEW_LINE>Thread.currentThread()<MASK><NEW_LINE>Quarkus.run(KeycloakMain.class, (exitCode, cause) -> {<NEW_LINE>if (cause != null) {<N...
.setContextClassLoader(new KeycloakClassLoader());
1,424,876
public void onModuleLoad() {<NEW_LINE>// Make some text boxes. The password text box is identical to the text<NEW_LINE>// box, except that the input is visually masked by the browser.<NEW_LINE>PasswordTextBox ptb = new PasswordTextBox();<NEW_LINE>TextBox tb = new TextBox();<NEW_LINE>// TODO(ECC) must be tested.<NEW_LIN...
getSource()).cancelKey();
128,312
public boolean send(Object data, boolean close) throws IOException {<NEW_LINE>if (closedRan.get()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (isWebSocket()) {<NEW_LINE>if (data instanceof Map) {<NEW_LINE>// only get the :body if map<NEW_LINE>Object tmp = ((Map<Keyword, Object>) data).get(BODY);<NEW_LINE>if (tmp !...
= readAll((InputStream) data);
200,600
private List<Parameter> extractParametersFromAnnotation(Type type, ClassToInstanceMap<Annotation> annotations) {<NEW_LINE>String defaultValue = "";<NEW_LINE>if (annotations.containsKey(DefaultValue.class)) {<NEW_LINE>DefaultValue defaultValueAnnotation = <MASK><NEW_LINE>defaultValue = defaultValueAnnotation.value();<NE...
annotations.getInstance(DefaultValue.class);
879,862
public static FindOrderableListResponse unmarshall(FindOrderableListResponse findOrderableListResponse, UnmarshallerContext _ctx) {<NEW_LINE>findOrderableListResponse.setRequestId(_ctx.stringValue("FindOrderableListResponse.RequestId"));<NEW_LINE>findOrderableListResponse.setCode(_ctx.integerValue("FindOrderableListRes...
("FindOrderableListResponse.Data.ServiceList[" + i + "].InterfaceName"));
1,024,294
public void write(org.apache.thrift.protocol.TProtocol prot, setSystemProperty_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (struct...
oprot.writeBitSet(optionals, 4);
1,636,856
void collectTrace(Transaction transaction) {<NEW_LINE>boolean slow = shouldStoreSlow(transaction);<NEW_LINE>if (!slow && !shouldStoreError(transaction)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// don't need to worry about race condition since only ever called from a single thread<NEW_LINE>if (transaction.isPartiallyStor...
warn("not storing a completed trace because of an excessive backlog" + " of {} completed traces already waiting to be stored", PENDING_LIMIT);
1,479,887
public Object doQuery(Object[] objs) {<NEW_LINE>List<String> ls = new ArrayList<String>();<NEW_LINE>if (objs.length != 2) {<NEW_LINE>throw new RQException("redis zrank param size " + objs.length + " is not 2");<NEW_LINE>} else {<NEW_LINE>Object[] os = new Object[1];<NEW_LINE>os[0] = objs[0<MASK><NEW_LINE>// for columns...
] + "_" + objs[1];
1,470,821
@SaCheckPermission("wx.reply")<NEW_LINE>public Object channel_data(@Param("searchName") String searchName, @Param("searchKeyword") String searchKeyword, @Param("pageNumber") int pageNumber, @Param("pageSize") int pageSize, @Param("pageOrderName") String pageOrderName, @Param("pageOrderBy") String pageOrderBy) {<NEW_LIN...
(pageNumber, pageSize, cnd));
942,536
private void removeAfterInFile(int fileId, long untilLogId) {<NEW_LINE>String oldFilePath = storagePath + File.separator + OPLOG_FILE.replace("$NUM$", "" + fileId);<NEW_LINE>File oldFile = new File(oldFilePath);<NEW_LINE>String newFilePath = storagePath + File.separator + OPLOG_FILE.replace("$NUM$", "" + fileId) + "_te...
DataInputStream(new FileInputStream(oldFile));
448,742
public Jdbi initializeJdbi(DatabaseConfig databaseConfig, String poolName) {<NEW_LINE>initializeTracing();<NEW_LINE><MASK><NEW_LINE>final var dbUrl = RdbConfig.buildDatabaseConnectionString(databaseConfig.getRdbConfiguration());<NEW_LINE>hikariDataSource.setJdbcUrl(dbUrl);<NEW_LINE>hikariDataSource.setUsername(database...
final var hikariDataSource = new HikariDataSource();
1,226,089
private static void runCompressionZstd(NativeIO nativeIO, Path oldFile) {<NEW_LINE>try {<NEW_LINE>Path compressedFile = Paths.get(oldFile.toString() + ".zst");<NEW_LINE><MASK><NEW_LINE>try (FileOutputStream fileOut = AtomicFileOutputStream.create(compressedFile);<NEW_LINE>ZstdOuputStream out = new ZstdOuputStream(fileO...
int bufferSize = 2 * 1024 * 1024;
884,743
public void execute(LocalManagerApiContext context, LtApi api, UUID sessionId, Collection<LocalTraderEventSubscriber> subscribers) {<NEW_LINE>try {<NEW_LINE>notifySendingRequest(subscribers);<NEW_LINE>// Call function<NEW_LINE>final TraderInfo info = api.getTraderInfo(sessionId).getResult();<NEW_LINE>// Cache TraderInf...
handleErrors(this, e.errorCode);
982,130
private static Map<ClassLoader, String> collectKnownClassLoaders(ClassLoaderRegistry registry) {<NEW_LINE>Map<ClassLoader, String> knownClassLoaders = Maps.newHashMap();<NEW_LINE>String javaVmVersion = String.format("%s|%s", System.getProperty("java.vm.name"), System.getProperty("java.vm.vendor"));<NEW_LINE>ClassLoader...
.current().getVersion();
1,796,602
public MethodResponse unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MethodResponse methodResponse = new MethodResponse();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
JsonToken token = context.getCurrentToken();
1,099,034
private boolean containsLanguageAtOffset(final Document document, final int offset) {<NEW_LINE>if (offset == -1) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final AtomicBoolean result = new AtomicBoolean();<NEW_LINE>document.render(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>Tok...
embeddedTokenSequences.size() - 1);