idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
385,655
private void refreshLocks() {<NEW_LINE>try {<NEW_LINE>Set<T> toRefresh = getTokensToRefreshAndExpireStaleTokens();<NEW_LINE>if (toRefresh.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Set<T> <MASK><NEW_LINE>Set<T> refreshFailures = Sets.difference(toRefresh, successfullyRefreshedTokens);<NEW_LINE>refreshFailures.fo...
successfullyRefreshedTokens = lockLeaseRefresher.refreshLockLeases(toRefresh);
1,814,655
static RubyClass createJavaClassClass(final Ruby runtime, final RubyModule Java, final RubyClass JavaObject) {<NEW_LINE>// TODO: Determine if a real allocator is needed here. Do people want to extend<NEW_LINE>// JavaClass? Do we want them to do that? Can you Class.new(JavaClass)? Should you be able to?<NEW_LINE>// NOTE...
getMetaClass().undefineMethod("allocate");
637,903
public final Var_declContext var_decl() throws RecognitionException {<NEW_LINE>Var_declContext _localctx = new Var_declContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(266);<NEW_LINE>((Var_declContext) _localctx).vt = var_type...
enterRule(_localctx, 18, RULE_var_decl);
815,391
private void onPaused() {<NEW_LINE>if (DEBUG) {<NEW_LINE>Log.d(TAG, "onPaused() called");<NEW_LINE>}<NEW_LINE>if (isProgressLoopRunning()) {<NEW_LINE>stopProgressLoop();<NEW_LINE>}<NEW_LINE>// Don't let UI elements popup during double tap seeking. This state is entered sometimes<NEW_LINE>// during seeking/loading. This...
setImageResource(R.drawable.ic_play_arrow);
1,849,884
public static ListGroupMemberResponse unmarshall(ListGroupMemberResponse listGroupMemberResponse, UnmarshallerContext _ctx) {<NEW_LINE>listGroupMemberResponse.setRequestId(_ctx.stringValue("ListGroupMemberResponse.RequestId"));<NEW_LINE>listGroupMemberResponse.setErrorCode(_ctx.stringValue("ListGroupMemberResponse.Erro...
("ListGroupMemberResponse.Result[" + i + "].ExternUserId"));
1,853,906
final CreateStorageVirtualMachineResult executeCreateStorageVirtualMachine(CreateStorageVirtualMachineRequest createStorageVirtualMachineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createStorageVirtualMachineRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,443,801
public static void main(String... args) {<NEW_LINE>System.out.println("Testing -Dstages=" + STAGES + " -Dpath=" + PATH);<NEW_LINE>Jvm.setExceptionHandlers(Jvm.error(), Jvm.warn(), null, null);<NEW_LINE>MappedFile.warmup();<NEW_LINE>runBenchmark(2_000_000, 2_000, true);<NEW_LINE>System.out.println("Warmup complete");<NE...
println("\n==== Throughput " + t + "k/s ====");
43,911
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception {<NEW_LINE>if (reader.getLocalName().equals(XmlElementNames.NumberOfMembers)) {<NEW_LINE>this.numberOfMembers = reader.readElementValue(Integer.class);<NEW_LINE>return true;<NEW_LINE>} else if (reader.getLocalName().equals(XmlElementNames...
reader.readElementValue(Integer.class);
534,623
final UpdateMLModelResult executeUpdateMLModel(UpdateMLModelRequest updateMLModelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateMLModelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,121,201
private void fillDomainStacks() throws IOException {<NEW_LINE>if (!this.domainStacks.isEmpty() && System.currentTimeMillis() - this.lastDomainStackFill < 60000L)<NEW_LINE>return;<NEW_LINE>this.domainStacks.clear();<NEW_LINE>this.lastDomainStackFill = System.currentTimeMillis();<NEW_LINE>final HandleSet blackhandles = n...
= this.domainStacks.size();
656,630
public List<Map> openFolderTree(String parentInode) throws DotHibernateException, DotSecurityException, DotDataException {<NEW_LINE>WebContext ctx = WebContextFactory.get();<NEW_LINE>User usr = getUser(ctx.getHttpServletRequest());<NEW_LINE>Role[] roles = new Role[] {};<NEW_LINE>if (usr != null) {<NEW_LINE>try {<NEW_LI...
e.getMessage(), e);
1,726,437
public void adjustVideoPosition(double adjustPercent, boolean forwardDirection) {<NEW_LINE>if (disableGestures) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (adjustPercent < -1.0f) {<NEW_LINE>adjustPercent = -1.0f;<NEW_LINE>} else if (adjustPercent > 1.0f) {<NEW_LINE>adjustPercent = 1.0f;<NEW_LINE>}<NEW_LINE>int totalTime...
setImageResource(R.drawable.ic_rewind);
1,222,565
public int carFleet(int target, int[] position, int[] speed) {<NEW_LINE>if (position.length == 1)<NEW_LINE>return 1;<NEW_LINE>Stack<Double> stack = new Stack<>();<NEW_LINE>int[][] combine = new int[position.length][2];<NEW_LINE>for (int i = 0; i < position.length; i++) {<NEW_LINE>combine[i][0] = position[i];<NEW_LINE>c...
o -> o[0]));
1,041,366
private void init() {<NEW_LINE>handler.postDelayed(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>if (context instanceof Activity) {<NEW_LINE>windowManager = (WindowManager) context.getSystemService(WINDOW_SERVICE);<NEW_LINE>view = LayoutInflater.from(context).inflate(layoutId, null...
? 0 : WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE;
133,818
private void loadNode5() {<NEW_LINE>UaVariableTypeNode node = new UaVariableTypeNode(this.context, Identifiers.TwoStateVariableType, new QualifiedName(0, "TwoStateVariableType"), new LocalizedText("en", "TwoStateVariableType"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NU...
.expanded(), true));
371,749
// GEN-LAST:event_languageComboActionPerformed<NEW_LINE>private void goToPageTextFieldActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_goToPageTextFieldActionPerformed<NEW_LINE>String pageNumberStr = goToPageTextField.getText();<NEW_LINE>int pageNumber;<NEW_LINE>int maxPage = Math.round((da...
, "StringsTextViewer.goToPageTextField.err"), JOptionPane.WARNING_MESSAGE);
475,393
public void widgetSelected(SelectionEvent e) {<NEW_LINE>TableItem item = objectsTable.getItem(objectsTable.getSelectionIndex());<NEW_LINE>DataTransferPipe pipe = (DataTransferPipe) item.getData();<NEW_LINE>IDataTransferProducer<?> producer = pipe.getProducer();<NEW_LINE>if (producer instanceof DatabaseTransferProducer ...
.getDatabaseObject().getDataSource();
187,951
public static boolean matchesAqueryFilters(ActionAnalysisMetadata action, AqueryActionFilter actionFilters) {<NEW_LINE>NestedSet<Artifact> inputs = action.getInputs();<NEW_LINE>Iterable<Artifact> outputs = action.getOutputs();<NEW_LINE>String mnemonic = action.getMnemonic();<NEW_LINE>if (actionFilters.hasFilterForFunct...
, artifact.getExecPathString()));
1,126,657
public static List<Appointment> generateAppointments(final Date startDate, final Date endDate, final String weekdays, final String startTimeString, final String endTimeString) {<NEW_LINE>List<Appointment> appointments = new LinkedList();<NEW_LINE>// check if a Date is empty<NEW_LINE>if (startDate == null || startDate.g...
, wd[0], startTimeString);
1,159,539
public void marshall(TranscriptionJob transcriptionJob, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (transcriptionJob == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(transcriptionJob.getTranscriptionJob...
transcriptionJob.getMediaFormat(), MEDIAFORMAT_BINDING);
1,813,564
public MappedFieldType unmappedFieldType(String type) {<NEW_LINE>if (type.equals("string")) {<NEW_LINE>deprecationLogger.deprecate("unmapped_type_string", "[unmapped_type:string] should be replaced with [unmapped_type:keyword]");<NEW_LINE>type = "keyword";<NEW_LINE>}<NEW_LINE>MappedFieldType fieldType = unmappedFieldTy...
typeParser = parserContext.typeParser(type);
336,346
protected boolean trGenericPropertyValue(OWLAnnotationProperty prop, OWLAnnotationValue annVal, Stream<OWLAnnotation> qualifiers, Frame frame) {<NEW_LINE>// no built-in obo tag for this: use the generic property_value tag<NEW_LINE>Clause clause = new Clause(OboFormatTag.TAG_PROPERTY_VALUE.getTag());<NEW_LINE>String pro...
addValue(dataTypeIri.toString());
208,864
ClauseEntry parseClause() {<NEW_LINE>String token = peekToken();<NEW_LINE>if (token.equals("(")) {<NEW_LINE>List<Node> nodes = parseNodeList();<NEW_LINE>if (nodes.size() != 3) {<NEW_LINE>throw new ParserException("Triple with " + nodes.size() + " nodes!", this);<NEW_LINE>}<NEW_LINE>if (Functor.isFunctor(nodes.get(0))) ...
, nodes.get(2));
567,275
public String licenseKeyFormatting(String S, int K) {<NEW_LINE>StringBuilder stringBuilder = new StringBuilder();<NEW_LINE>char[] SChars = S.toCharArray();<NEW_LINE>for (int i = S.length() - 1, j = 0; i >= 0; ) {<NEW_LINE>if (j < K) {<NEW_LINE>if (SChars[i] != '-') {<NEW_LINE>if (SChars[i] >= 'a' && SChars[i] <= 'z') {...
reverse().substring(1);
1,839,161
private final PricingConditionsBreakQuery createPricingConditionsBreakQuery(final I_C_OrderLine salesOrderLine) {<NEW_LINE>final IProductDAO productsRepo = Services.get(IProductDAO.class);<NEW_LINE>final IAttributeDAO attributesRepo = Services.get(IAttributeDAO.class);<NEW_LINE>final ProductId productId = ProductId.ofR...
BigDecimal price = salesOrderLine.getPriceActual();
256,165
// [END solution_printer]<NEW_LINE>public static void main(String[] args) {<NEW_LINE>Loader.loadNativeLibraries();<NEW_LINE>// Create the model.<NEW_LINE>// [START model]<NEW_LINE>CpModel model = new CpModel();<NEW_LINE>// [END model]<NEW_LINE>// [START variables]<NEW_LINE>int boardSize = 8;<NEW_LINE>IntVar[] queens = ...
System.out.println("Statistics");
670,828
public void visit(IonDatagram value) throws IOException, Exception {<NEW_LINE>Iterator<IonValue> i = (myOptions.skipSystemValues ? value.iterator() : value.systemIterator());<NEW_LINE>final boolean asList = myOptions.datagramAsList;<NEW_LINE>if (asList) {<NEW_LINE>myOut.append('[');<NEW_LINE>}<NEW_LINE>boolean hitOne =...
child = simplify(child, previous_symbols);
874,327
final AssociateMemberResult executeAssociateMember(AssociateMemberRequest associateMemberRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateMemberRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
783,834
public String optionList(Layout layout, Comparator<OptionSpec> optionSort, IParamLabelRenderer valueLabelRenderer) {<NEW_LINE>// options are stored in order of declaration<NEW_LINE>List<OptionSpec> options = new ArrayList<OptionSpec>(commandSpec.options());<NEW_LINE>if (optionSort != null) {<NEW_LINE>// default: sort o...
addGroupOptionsToListRecursively(group, groupOptions, optionSort);
743,922
private void parseHost(VirtualHost host, Node hostNode) {<NEW_LINE>// Parse the "RouterType" attributes and elements.<NEW_LINE>parseRouter(host, hostNode);<NEW_LINE>Node item = hostNode.getAttributes().getNamedItem("hostDomain");<NEW_LINE>if ((item != null) && (item.getNodeValue() != null)) {<NEW_LINE>host.setHostDomai...
getAttributes().getNamedItem("resourceDomain");
481,461
default <T1, T2> Tuple2<Iterator<T1>, Iterator<T2>> unzip(Function<? super T, ? extends T1> unzipper1, Function<? super T, ? extends T2> unzipper2) {<NEW_LINE>Objects.requireNonNull(unzipper1, "unzipper1 is null");<NEW_LINE>Objects.requireNonNull(unzipper2, "unzipper2 is null");<NEW_LINE>if (!hasNext()) {<NEW_LINE>retu...
empty(), empty());
1,844,018
public void classConstant(VariableReader receiver, ValueType cst) {<NEW_LINE>DependencyNode node = getNode(receiver);<NEW_LINE>if (node != null) {<NEW_LINE>node.propagate(getAnalyzer().getType("java.lang.Class"));<NEW_LINE>if (!(cst instanceof ValueType.Primitive)) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW...
Array) cst).getItemType();
1,584,243
public void run() {<NEW_LINE>try {<NEW_LINE>protocolProvider.unregister(true);<NEW_LINE>} catch (OperationFailedException ex) {<NEW_LINE>int errorCode = ex.getErrorCode();<NEW_LINE>if (errorCode == OperationFailedException.GENERAL_ERROR) {<NEW_LINE>logger.error("Provider could not be unregistered" + " due to the follow...
error("Provider could not be unregistered" + " due to a network failure: " + ex);
332,401
public FilterResult apply(String fileName, InputStream stream) throws IOException {<NEW_LINE>if (stream == null) {<NEW_LINE>return new FilterResult(null, false);<NEW_LINE>}<NEW_LINE>// Allow replacement of certain values in css<NEW_LINE>if (fileName.endsWith(CSS)) {<NEW_LINE>String applicationName = applicationConfig.n...
.getBytes()), true);
885,075
final DescribeMaintenanceWindowScheduleResult executeDescribeMaintenanceWindowSchedule(DescribeMaintenanceWindowScheduleRequest describeMaintenanceWindowScheduleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeMaintenanceWindowScheduleRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
endClientExecution(awsRequestMetrics, request, response);
1,101,567
public void testFlowableRxInvoker_getCbReceiveTimeout(Map<String, String> param, StringBuilder ret) {<NEW_LINE>long timeout = messageTimeout;<NEW_LINE>if (isZOS()) {<NEW_LINE>timeout = zTimeout;<NEW_LINE>}<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE><...
ClientBuilder cb = ClientBuilder.newBuilder();
641,548
public boolean triggerAbility(TriggeredAbility source, Game game) {<NEW_LINE>Ability ability = source.copy();<NEW_LINE>List<Ability> options = getPlayableOptions(ability, game);<NEW_LINE>if (options.isEmpty()) {<NEW_LINE><MASK><NEW_LINE>game.getStack().push(new StackAbility(ability, playerId));<NEW_LINE>if (ability.act...
logger.debug("simulating -- triggered ability:" + ability);
415,752
public static DescribeConfigOptionsResponse unmarshall(DescribeConfigOptionsResponse describeConfigOptionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeConfigOptionsResponse.setRequestId(_ctx.stringValue("DescribeConfigOptionsResponse.RequestId"));<NEW_LINE>describeConfigOptionsResponse.setCode(_ctx.stringValu...
("DescribeConfigOptionsResponse.StackConfigOption.ConfigOptions[" + i + "].ValueOptions"));
652,102
private void updateDisplayName() {<NEW_LINE>long tagsCount = 0;<NEW_LINE>try {<NEW_LINE>TagsManager tm = Case.getCurrentCaseThrows()<MASK><NEW_LINE>if (UserPreferences.showOnlyCurrentUserTags()) {<NEW_LINE>String userName = System.getProperty(USER_NAME_PROPERTY);<NEW_LINE>if (filteringDSObjId > 0) {<NEW_LINE>tagsCount ...
.getServices().getTagsManager();
1,475,662
static Set<DayOfWeek> mapDayOfWeek(DayOfWeekEnumeration value) {<NEW_LINE>switch(value) {<NEW_LINE>case MONDAY:<NEW_LINE>return <MASK><NEW_LINE>case TUESDAY:<NEW_LINE>return EnumSet.of(DayOfWeek.TUESDAY);<NEW_LINE>case WEDNESDAY:<NEW_LINE>return EnumSet.of(DayOfWeek.WEDNESDAY);<NEW_LINE>case THURSDAY:<NEW_LINE>return E...
EnumSet.of(DayOfWeek.MONDAY);
506,219
public boolean insertTenantCapacity(final TenantCapacity tenantCapacity) {<NEW_LINE>final String sql = "INSERT INTO tenant_capacity (tenant_id, quota, `usage`, `max_size`, max_aggr_count, max_aggr_size, " + "gmt_create, gmt_modified) SELECT ?, ?, count(*), ?, ?, ?, ?, ? FROM config_info WHERE tenant_id=?;";<NEW_LINE>tr...
prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);
1,159,567
public void updatePosition(PlaybackPositionEvent event) {<NEW_LINE>if (controller == null || txtvPosition == null || txtvLength == null || sbPosition == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TimeSpeedConverter converter = new TimeSpeedConverter(controller.getCurrentPlaybackSpeedMultiplier());<NEW_LINE>int curren...
* sbPosition.getMax()));
150,660
public Object saveBinaryInternalFile(InputStream file, String path, String type) throws RepositoryException {<NEW_LINE>if (file == null) {<NEW_LINE>// Create new folder<NEW_LINE>String parent = path.substring(0, path.lastIndexOf(sep));<NEW_LINE>int pos = path.lastIndexOf(sep);<NEW_LINE>String filename = "." + sep + pat...
log.debug("Saving:" + filename);
1,287,230
public <T1, T2, T3, T4, T5> Subscription on(String target, Action5<T1, T2, T3, T4, T5> callback, Class<T1> param1, Class<T2> param2, Class<T3> param3, Class<T4> param4, Class<T5> param5) {<NEW_LINE>ActionBase action = params -> {<NEW_LINE>callback.invoke(Utils.<T1>cast(param1, params[0]), Utils.<T2>cast(param2, params[...
param5, params[4]));
753,688
private HttpRequest.Builder placeOrderRequestBuilder(Order order) throws ApiException {<NEW_LINE>// verify the required parameter 'order' is set<NEW_LINE>if (order == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder");<NEW_LINE>}<NEW_LINE>HttpRequest.Builder l...
localVarRequestBuilder.header("Accept", "application/json");
945,098
protected void drawGuiContainerBackgroundLayer(float par1, int mouseX, int mouseY) {<NEW_LINE>GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);<NEW_LINE>bindGuiTexture();<NEW_LINE>int sx <MASK><NEW_LINE>int sy = (height - ySize) / 2;<NEW_LINE>drawTexturedModalRect(sx, sy, 0, 0, this.xSize, this.ySize);<NEW_LINE>int headerC...
= (width - xSize) / 2;
938,299
public void validate() {<NEW_LINE>DBAnnotatedObjectInfo annotation = type.getAnnotation(DBAnnotatedObjectInfo.class);<NEW_LINE>if (annotation != null && type.getKind() != ElementKind.CLASS) {<NEW_LINE>ctx.messager.printMessage(Kind.ERROR, String.format("@%s cannot be applied to an interface", DBAnnotatedObjectInfo.clas...
.getSimpleName()), type);
1,342,002
public static QueryServicePackAndPriceResponse unmarshall(QueryServicePackAndPriceResponse queryServicePackAndPriceResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryServicePackAndPriceResponse.setRequestId(_ctx.stringValue("QueryServicePackAndPriceResponse.RequestId"));<NEW_LINE>queryServicePackAndPriceResponse.setRe...
(_ctx.integerValue("QueryServicePackAndPriceResponse.OriginalAmount"));
603,735
private void addExtension(Extension extension, boolean operatorOverriding) {<NEW_LINE>// token parsers<NEW_LINE>List<TokenParser> tokenParsers = extension.getTokenParsers();<NEW_LINE>if (tokenParsers != null) {<NEW_LINE>for (TokenParser tokenParser : tokenParsers) {<NEW_LINE>this.tokenParsers.put(tokenParser.getTag(), ...
> functions = extension.getFunctions();
1,812,762
public String makeSubquery(APIQueryMessage msg, Class inventoryClass) {<NEW_LINE>List<String> resultQuery = new ArrayList<String>();<NEW_LINE>Class entityClass = QueryUtils.getEntityClassFromInventoryClass(inventoryClass);<NEW_LINE>String primaryKey = QueryUtils.getPrimaryKeyNameFromEntityClass(entityClass);<NEW_LINE>S...
.getSimpleName().toLowerCase();
468,353
private void createOrderBOMLineFromPhantomLine(final I_PP_Order_BOMLine phantomOrderBOMLine, final I_PP_Product_BOMLine productBOMLine, final Quantity qtyFinishedGoods) {<NEW_LINE>final I_PP_Order_BOMLine orderBOMLine = InterfaceWrapperHelper.newInstance(I_PP_Order_BOMLine.class, phantomOrderBOMLine);<NEW_LINE>updateOr...
setPP_Order_ID(orderBOMLine.getPP_Order_ID());
2,267
final UpdateBackendAPIResult executeUpdateBackendAPI(UpdateBackendAPIRequest updateBackendAPIRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateBackendAPIRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
endClientExecution(awsRequestMetrics, request, response);
1,315,593
public CompletableFuture<WebSocket> buildAsync(Listener listener) {<NEW_LINE>Request request = builder.build();<NEW_LINE>CompletableFuture<WebSocket> future = new CompletableFuture<>();<NEW_LINE>httpClient.newWebSocket(request, new WebSocketListener() {<NEW_LINE><NEW_LINE>private volatile boolean opened;<NEW_LINE><NEW_...
new OkHttpWebSocketImpl(webSocket), text);
954,437
public void addMapperAnnotations(Interface interfaze, Method method) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>interfaze.addImportedType(new FullyQualifiedJavaType("org.apache.ibatis.annotations.Select"));<NEW_LINE>buildInitialSelectAnnotationStrings().forEach(method::addAnnotation);<NEW_LINE>StringBuilder sb = new StringBuil...
method, introspectedTable.getNonPrimaryKeyColumns());
966,527
private void processSubsets(Itemset itemset, final int len, int cur) {<NEW_LINE>// TODO: allow cur == 0, i.e. empty head?<NEW_LINE>while (cur >= 0 && scratch1.len > 1) {<NEW_LINE>assert (cur < scratch1.len);<NEW_LINE>int[] indices = scratch1.indices;<NEW_LINE>// Option 1: move last entry to consequent.<NEW_LINE>int ele...
append("Antecedent not found: "), meta));
145,662
public static ConCallExpression computeMatchingPatterns(DataCallExpression dataCall, Constructor constructor, @Nullable ExprSubstitution substitution, Map<Binding, ExpressionPattern> result) {<NEW_LINE>List<MatchResult> matchResults = new ArrayList<>();<NEW_LINE>if (computeMatchingExpressions(dataCall, constructor, fal...
).normalize(NormalizationMode.WHNF);
369,485
public Response makeResponse(FitNesseContext context, final Request request) throws Exception {<NEW_LINE>Response response = new SimpleResponse();<NEW_LINE>String resource = request.getResource();<NEW_LINE>File rootPath = new File(context.getRootPagePath());<NEW_LINE>final File pathName <MASK><NEW_LINE>if (!FileRespond...
= new File(rootPath, resource);
30,501
private Map<String, Object> createNumbersMap(ServerUUID serverUUID) {<NEW_LINE>Database db = dbSystem.getDatabase();<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>long twoDaysAgo = now - TimeUnit.DAYS.toMillis(2L);<NEW_LINE>Long playtimeThreshold = config.get(TimeSettings.ACTIVE_PLAY_THRESHOLD);<NEW_LINE>Map...
, timeAmount.apply(totalPlaytime));
1,268,241
public static void print(SpringService springService) {<NEW_LINE>StringBuilder info = new StringBuilder("Spring Service: ").append("\n\tId: ").append(springService.id()).append("\n\tName: ").append(springService.name()).append("\n\tResource Group: ").append(springService.resourceGroupName()).append("\n\tRegion: ").appe...
println(info.toString());
911,340
private CompletableFuture<List<Wo>> searchStatement(final Wi wi, final List<String> appIdList, final List<String> designerIdList) {<NEW_LINE>CompletableFuture<List<Wo>> cf = CompletableFuture.supplyAsync(() -> {<NEW_LINE>List<Wo> resWos = new ArrayList<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContai...
setAppName(query.getName());
670,384
void updateSimpleMetadataElement(Class<B> beanClass, LocationElement bean, EntityDetail entity, String methodName) throws PropertyServerException {<NEW_LINE>if (entity != null) {<NEW_LINE>bean.setElementHeader(this.getMetadataElementHeader(beanClass, entity, methodName));<NEW_LINE>LocationProperties locationProperties ...
(this.removeAdditionalProperties(instanceProperties));
1,163,094
private void drawHead(DrawHandler drawHandler, double x, double y, double width, double height) {<NEW_LINE>if (headType == LifelineHeadType.STANDARD || headType == LifelineHeadType.ACTIVE_CLASS) {<NEW_LINE>drawHandler.drawRectangle(<MASK><NEW_LINE>if (headType == LifelineHeadType.ACTIVE_CLASS) {<NEW_LINE>drawHandler.dr...
x, y, width, height);
809,492
public DescribeClustersResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeClustersResult describeClustersResult = new DescribeClustersResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument...
XMLEvent xmlEvent = context.nextEvent();
1,007,598
private void addFilterToList(final ContextMenuAdapter adapter, final List<PoiUIFilter> list, final PoiUIFilter f, boolean multiChoice) {<NEW_LINE>list.add(f);<NEW_LINE><MASK><NEW_LINE>if (multiChoice) {<NEW_LINE>item.setSelected(app.getPoiFilters().isPoiFilterSelected(f));<NEW_LINE>item.setListener((adptr, itemId, posi...
ContextMenuItem item = new ContextMenuItem(null);
1,155,022
public static void lookup() {<NEW_LINE>// Start by purging files<NEW_LINE>purgeFiles();<NEW_LINE>File pluginsFolder = new File(CONFIGURATION.getPluginDirectory());<NEW_LINE>LOGGER.info("Searching for plugins in " + pluginsFolder.getAbsolutePath());<NEW_LINE>try {<NEW_LINE>FilePermissions permissions = new FilePermissio...
null) ? 0 : jarFiles.length;
878,041
final DescribeHostReservationsResult executeDescribeHostReservations(DescribeHostReservationsRequest describeHostReservationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeHostReservationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
711,205
public QuarkusCodestartTestBuilder standaloneExtensionCatalog(String quarkusBomGroupId, String quarkusBomVersion) {<NEW_LINE>try {<NEW_LINE>String buildWithQuarkusCoreVersion = null;<NEW_LINE>final ArrayList<Extension> extensions = new ArrayList<>();<NEW_LINE>for (URL url : Collections.list(Thread.currentThread().getCo...
extensionCatalog = QuarkusProjectHelper.getExtensionCatalog(quarkusVersion);
1,151,369
public static void horizontal5(Kernel1D_S32 kernel, GrayU8 image, GrayI16 dest) {<NEW_LINE>final byte[] dataSrc = image.data;<NEW_LINE>final short[] dataDst = dest.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel...
indexDst++] = (short) total;
948,335
private void check(final AlterTrafficRuleStatement sqlStatement, final Optional<TrafficRuleConfiguration> currentConfiguration) throws DistSQLException {<NEW_LINE>DistSQLException.predictionThrow(currentConfiguration.isPresent(), () -> new RequiredRuleMissedException("Traffic"));<NEW_LINE>Collection<String> currentRule...
collect(Collectors.toSet());
171,153
protected <T> Stream<T> doStream(Query query, Class<?> entityType, String collectionName, Class<T> returnType) {<NEW_LINE>Assert.notNull(query, "Query must not be null!");<NEW_LINE>Assert.notNull(entityType, "Entity type must not be null!");<NEW_LINE>Assert.hasText(collectionName, "Collection name must not be null or e...
, collectionName)).stream();
1,238,381
public void defaultSystemConfigProperties() throws Exception {<NEW_LINE>Map<String, String> systemValues = new HashMap<>(System.getenv());<NEW_LINE>Properties props = System.getProperties();<NEW_LINE>// Properties override environment variables.<NEW_LINE>for (Map.Entry<?, ?> entry : props.entrySet()) {<NEW_LINE>String ...
expectedKey, expectedKey.getClass());
139,393
private static void apply(CompLongLongVector v1, CompLongLongVector v2, Binary op, CompLongLongVector result, int start, int end) {<NEW_LINE>if (v1.isCompatable(v2)) {<NEW_LINE>LongLongVector[] v1Parts = v1.getPartitions();<NEW_LINE>LongLongVector[] v2Parts = v2.getPartitions();<NEW_LINE>if (op.isInplace()) {<NEW_LINE>...
, v2Parts[i], op);
1,671,524
public final double dotProduct(SparseVector v) {<NEW_LINE>if (v instanceof AugmentableFeatureVector)<NEW_LINE>return dotProduct((AugmentableFeatureVector) v);<NEW_LINE>if (indices != null && size - 1 != maxSortedIndex)<NEW_LINE>sortIndices();<NEW_LINE>@Var<NEW_LINE>double ret = 0;<NEW_LINE>@Var<NEW_LINE>int vl = 0;<NEW...
.value(indices[loc]);
146,834
public int vote(Authentication authentication, Object object, Collection<ConfigAttribute> configAttributes) {<NEW_LINE>int result = ACCESS_ABSTAIN;<NEW_LINE>if (authentication.getDetails() instanceof OAuthAuthenticationDetails) {<NEW_LINE>OAuthAuthenticationDetails details = <MASK><NEW_LINE>for (Object configAttribute ...
(OAuthAuthenticationDetails) authentication.getDetails();
1,470,761
public void read(org.apache.thrift.protocol.TProtocol prot, ThriftTableOperationException struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(5);<NEW_LINE>if (inco...
findByValue(iprot.readI32());
1,753,089
public void loadSystems(ModuleEnvironment environment, NetworkMode netMode) {<NEW_LINE>DisplayDevice display = context.get(DisplayDevice.class);<NEW_LINE>boolean isHeadless = display.isHeadless();<NEW_LINE>ListMultimap<Name, Class<?>> systemsByModule = ArrayListMultimap.create();<NEW_LINE>for (Class<?> type : environme...
type.getAnnotation(RegisterSystem.class);
469,577
static Op04StructuredStatement buildNestedBlocks(List<Op04StructuredStatement> containers) {<NEW_LINE>Stack<BlockIdentifier> blocksCurrentlyIn = StackFactory.newStack();<NEW_LINE>LinkedList<Op04StructuredStatement> outerBlock = ListFactory.newLinkedList();<NEW_LINE>Stack<StackedBlock> stackedBlocks = StackFactory.newSt...
= mutableProcessingBlockState.currentBlock.getLast();
850,565
final ListSubscribedWorkteamsResult executeListSubscribedWorkteams(ListSubscribedWorkteamsRequest listSubscribedWorkteamsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listSubscribedWorkteamsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,548,641
public Authentication authenticate(Authentication authentication) throws AuthenticationException {<NEW_LINE>OAuth2AuthorizationCodeAuthenticationToken authorizationCodeAuthentication = (OAuth2AuthorizationCodeAuthenticationToken) authentication;<NEW_LINE>OAuth2AuthorizationResponse authorizationResponse = authorization...
setDetails(authorizationCodeAuthentication.getDetails());
537,543
public ImportModelResult importModel(ImportModelRequest importModelRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(importModelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>aws...
new JsonResponseHandler<ImportModelResult>(unmarshaller);
845,693
public TopComponent createTopComponent(@NonNull Lookup lookup) {<NEW_LINE>Artifact artifact = lookup.lookup(Artifact.class);<NEW_LINE>assert artifact != null;<NEW_LINE>TopComponent existing = findExistingTc(artifact);<NEW_LINE>if (existing != null) {<NEW_LINE>return existing;<NEW_LINE>}<NEW_LINE>Collection<? extends Ar...
MultiViewDescription[provs.size()];
1,705,369
protected MessageProducer createConsumerEndpoint(ConsumerDestination destination, String group, ExtendedConsumerProperties<EventHubsConsumerProperties> properties) {<NEW_LINE>Assert.notNull(getProcessorFactory(), "processor factory can't be null when create a consumer");<NEW_LINE>boolean anonymous = !StringUtils.hasTex...
createContainerProperties(destination, group, properties);
1,428,203
public void propagateAreaLocations(OverlayEdge nodeEdge, int geomIndex) {<NEW_LINE>if (!inputGeometry.isArea(geomIndex))<NEW_LINE>return;<NEW_LINE>if (nodeEdge.degree() == 1)<NEW_LINE>return;<NEW_LINE>OverlayEdge eStart = findPropagationStartEdge(nodeEdge, geomIndex);<NEW_LINE>// no labelled edge found, so nothing to p...
getLocation(geomIndex, Position.LEFT);
1,609,105
public static <T> Configuration<T> build(Class<T> type, Set<String> excludedFields, Set<String> includedFields, Set<String> nonnullFields, CachedHashCodeInitializer<T> cachedHashCodeInitializer, boolean hasRedefinedSuperclass, Class<? extends T> redefinedSubclass, boolean usingGetClass, EnumSet<Warning> warningsToSuppr...
TypeTag typeTag = new TypeTag(type);
208,287
private Mono<Response<Void>> stopWebSiteNetworkTraceSlotWithResponseAsync(String resourceGroupName, String name, String slot, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
1,601,027
private MethodDeclaration findAfter(char[] startWith, Scope s, int from, int to, int maxLineCount, boolean outsideEnclosingBlock, char[][] discouragedNames, UnresolvedReferenceNameRequestor nameRequestor) {<NEW_LINE>this.requestor = nameRequestor;<NEW_LINE>// reinitialize completion scanner to be usable as a normal sca...
parser.startRecordingIdentifiers(from, end);
1,229,627
private static void addTree(List<Alteration> list, RelationshipsPart rp) throws Docx4JException {<NEW_LINE>if (rp == null)<NEW_LINE>return;<NEW_LINE>for (Relationship r : rp.getJaxbElement().getRelationship()) {<NEW_LINE>if (r.getTargetMode() != null && r.getTargetMode().equals("External")) {<NEW_LINE>log.debug(<MASK><...
r.getTarget() + " is external");
1,673,218
private static void decode224(int[] x, int xOff, int[] z, int zOff) {<NEW_LINE>int x0 = x[xOff + 0], x1 = x[xOff + 1], x2 = x[xOff + 2], x3 = x[xOff + 3];<NEW_LINE>int x4 = x[xOff + 4], x5 = x[xOff + 5], x6 = x[xOff + 6];<NEW_LINE>z[zOff + 0] = x0 & M28;<NEW_LINE>z[zOff + 1] = (x0 >>> 28 | x1 << 4) & M28;<NEW_LINE>z[zO...
16 | x4 << 16) & M28;
1,658,240
private ClassLoader loadRampPolicyClassLoader(final File pluginDir, final String rampPolicyName, final RampPolicyPluginSet plugins) {<NEW_LINE>// sysconf says what jars/confs to load<NEW_LINE>final Props pluginLoadProps = plugins.getPluginLoadProps(rampPolicyName);<NEW_LINE>final List<URL> resources = new ArrayList<>()...
getStringList("ramppolicy.classpath", null, ",");
334,892
public void initialize(CountsAccessor.Updater updater, CursorContext cursorContext, MemoryTracker memoryTracker) {<NEW_LINE>MigrationProgressMonitor progressMonitor = MigrationProgressMonitor.SILENT;<NEW_LINE>nodeLabelsCache = new NodeLabelsCache(numberArrayFactory, neoStore.getNodeStore().getHighId(), neoStore.getLabe...
, storeCursorsFactory, memoryTracker, memoryUsageStats));
608,298
// -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public PortfolioItemSummary summarize() {<NEW_LINE>// Long Pay USD 1mm @ GBP/USD 1.32 Premium USD 100k : 21Jan18<NEW_LINE>StringBuilder buf = new StringBuilder(96);<NEW_LINE>CurrencyAmount base = product.getUnderlyi...
append(product.getLongShort());
1,483,779
public Map<String, Object> populate(Map<String, Object> json, Map<String, Object> context) {<NEW_LINE>Long stockMoveLineId = (Long) json.get("id");<NEW_LINE>StockMoveLine stockMoveLine = find(stockMoveLineId);<NEW_LINE>StockMove stockMove = stockMoveLine.getStockMove();<NEW_LINE>if (stockMove == null || (stockMove.getF...
"availableStatusSelect", stockMoveLine.getAvailableStatusSelect());
383,734
public LambdaOutputUpdate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>LambdaOutputUpdate lambdaOutputUpdate = new LambdaOutputUpdate();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken t...
int originalDepth = context.getCurrentDepth();
315,859
private static boolean shouldRetry(Exception e) {<NEW_LINE>if (BulkTransferException.isOnlyCausedByCacheNotFoundException(e)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Status status = StatusProto.fromThrowable(e);<NEW_LINE>if (status == null || status.getDetailsCount() == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LI...
== Code.FAILED_PRECONDITION.value();
851,865
private LambdaParameters parseLambdaParameters() throws CompileException, IOException {<NEW_LINE>// Identifier<NEW_LINE>String identifier = this.peekRead(TokenType.IDENTIFIER);<NEW_LINE>if (identifier != null)<NEW_LINE>return new IdentifierLambdaParameters(identifier);<NEW_LINE>this.read("(");<NEW_LINE>// '(' ')'<NEW_L...
(this.location()));
843,198
private void clearParentId(SQLiteDatabase db, long taskId, Cursor oldValues) {<NEW_LINE>int type = oldValues.getInt(oldValues<MASK><NEW_LINE>if (type == Relation.RELTYPE_PARENT) {<NEW_LINE>// this was a link to the parent, we're orphaned now, so clear PARENT_ID of this task<NEW_LINE>ContentValues taskValues = new Conte...
.getColumnIndex(Relation.RELATED_TYPE));
426,894
public String fetchConfig() {<NEW_LINE>final ArrayNode adaptersArray = JsonNodeFactory.instance.arrayNode();<NEW_LINE>// Construct the JObject for each adapter.<NEW_LINE>for (final Map.Entry<String, StorageAdapterBase> namespaceAdapterTuple : this.namespaceAdapters.entrySet()) {<NEW_LINE>// Skip system-defined adapters...
"namespace", namespaceAdapterTuple.getKey());
1,809,130
public void marshall(SegmentDetection segmentDetection, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (segmentDetection == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(segmentDetection.getType(), TYPE_BIN...
segmentDetection.getEndFrameNumber(), ENDFRAMENUMBER_BINDING);
1,769,143
public WorkDurationWithPeriodCountObject durationWithPeriodCount(Date start, Date current, ActivityStub activityStub) throws Exception {<NEW_LINE>EntityManager em = this.entityManagerContainer().get(Work.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Date> cq = <MASK><NEW_LINE>Roo...
cb.createQuery(Date.class);
692,745
public void parseStatementNode() {<NEW_LINE>String id = context.getStringAttribute("id");<NEW_LINE>String databaseId = context.getStringAttribute("databaseId");<NEW_LINE>if (!databaseIdMatchesCurrent(id, databaseId, this.requiredDatabaseId)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String nodeName = context.getNode().get...
resultSetType = context.getStringAttribute("resultSetType");