idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
264,117
private TransportAddress bindAddress(final InetAddress hostAddress) {<NEW_LINE>final AtomicReference<Exception> lastException = new AtomicReference<>();<NEW_LINE>final AtomicReference<InetSocketAddress> boundSocket = new AtomicReference<>();<NEW_LINE>boolean success = port.iterate(portNumber -> {<NEW_LINE>try {<NEW_LIN...
set(httpServerChannel.getLocalAddress());
395,405
public Stream<AtomicResults> subtract(@Name("container") Object container, @Name("propertyName") String property, @Name("number") Number number, @Name(value = "times", defaultValue = "5") Long times) {<NEW_LINE>checkIsEntity(container);<NEW_LINE>Entity entity = Util.rebind(tx, (Entity) container);<NEW_LINE>final Number...
.getProperty(property), number);
1,460,953
public static IPoweredTask readFromNBT(@Nonnull NBTTagCompound nbtRoot) {<NEW_LINE>IMachineRecipe recipe;<NEW_LINE>float usedEnergy = nbtRoot.getFloat(KEY_USED_ENERGY);<NEW_LINE>long seed = nbtRoot.getLong(KEY_SEED);<NEW_LINE>float outputMultiplier = nbtRoot.getFloat(KEY_CHANCE_OUTPUT);<NEW_LINE>float chanceMultiplier ...
= new NNList<MachineRecipeInput>();
889,190
public void evaluate(Evaluation evaluation) {<NEW_LINE>DecisionResultCollector decision = new DecisionResultCollector() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void onComplete(Result result) {<NEW_LINE>if (isGranted(result.getResults().iterator().next())) {<NEW_LINE>evaluation.grant();<NEW_LINE>} else {<NEW_L...
-> new HashMap<>());
390,805
public SplitResult<OffsetRange> trySplit(double fractionOfRemainder) {<NEW_LINE>// If current tracking range is no longer growable, split it as a normal range.<NEW_LINE>if (range.getTo() != Long.MAX_VALUE || range.getTo() == range.getFrom()) {<NEW_LINE>return super.trySplit(fractionOfRemainder);<NEW_LINE>}<NEW_LINE>// ...
.ONE), MathContext.DECIMAL128);
245,455
public byte[] bytesValue() {<NEW_LINE>if (token == JSONToken.HEX) {<NEW_LINE>int start = np + 1, len = sp;<NEW_LINE>if (len % 2 != 0) {<NEW_LINE>throw new JSONException("illegal state. " + len);<NEW_LINE>}<NEW_LINE>byte[] bytes <MASK><NEW_LINE>for (int i = 0; i < bytes.length; ++i) {<NEW_LINE>char c0 = text.charAt(star...
= new byte[len / 2];
28,622
private void walkNodeTree(FileVisitor<Map.Entry<String, WorkspaceNode>> visitor) throws IOException {<NEW_LINE>Stack<Iterator<Map.Entry<String, WorkspaceNode>>> iterators = new Stack<>();<NEW_LINE>Stack<Map.Entry<String, WorkspaceNode>> groups = new Stack<>();<NEW_LINE>iterators.push(this.children.entrySet().iterator()...
visitor.visitFile(nextEntry, null);
1,787,619
public void appendToForm(final DefaultFormBuilder builder) {<NEW_LINE>final Box box = Box.createHorizontalBox();<NEW_LINE>box.setBorder(new EmptyBorder(5, 0, 5, 0));<NEW_LINE>filenameField = new JTextField();<NEW_LINE>filenameField.setText(value);<NEW_LINE>filenameField.addFocusListener(new FocusListener() {<NEW_LINE><...
.addActionListener(new SelectFileAction());
1,090,435
public void marshall(ThingGroupIndexingConfiguration thingGroupIndexingConfiguration, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (thingGroupIndexingConfiguration.getThingGroupIndexingMode() != null) {<NEW_LINE>String thingGroupIndexingMode = thingGroupIndexingConfigurati...
).marshall(managedFieldsItem, jsonWriter);
1,833,201
private Tree createDynamicTree() {<NEW_LINE>// Create a new tree<NEW_LINE>Tree dynamicTree = new Tree();<NEW_LINE>// Add some default tree items<NEW_LINE>for (int i = 0; i < 5; i++) {<NEW_LINE>TreeItem item = dynamicTree.addTextItem(constants.cwTreeItem() + " " + i);<NEW_LINE>// Temporarily add an item so we can expand...
addTextItem(itemText + "." + i);
233,425
private void applyToolbarConfigurations(ConfigureViewHolder holder) {<NEW_LINE>configureViewData.titleText = holder.titleEditText.getText();<NEW_LINE>configureViewData.titleCentered = holder.titleCenteredCheckBox.isChecked();<NEW_LINE>configureViewData.subtitleText = holder.subtitleEditText.getText();<NEW_LINE>configur...
toolbar.setTitle(configureViewData.titleText);
849,349
public static boolean deleteFile(@NonNull final File file, Context context) {<NEW_LINE>// First try the normal deletion.<NEW_LINE>if (file == null)<NEW_LINE>return true;<NEW_LINE>boolean fileDelete = false;<NEW_LINE>if (file.isDirectory()) {<NEW_LINE>fileDelete = rmdir(file, context);<NEW_LINE>}<NEW_LINE>if (file.delet...
delete(uri, null, null);
810,471
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndTypes(sources, 3, String.class, <MASK><NEW_LINE>final String sourceCRS = (String) sources[0];<NEW_LINE>final String targetCRS = (String) sources[1];<NEW...
String.class, Geometry.class);
448,050
public JRPrintElement fill() {<NEW_LINE><MASK><NEW_LINE>JRTemplateImage templateImage = new JRTemplateImage(fillContext.getElementOrigin(), fillContext.getDefaultStyleProvider());<NEW_LINE>templateImage.setStyle(fillContext.getElementStyle());<NEW_LINE>templateImage.setLinkType(getLinkType());<NEW_LINE>templateImage.se...
JRComponentElement element = fillContext.getComponentElement();
167,585
private ArrayList<TorrentFile> parseJsonFileList(JSONObject response, Torrent torrent) throws JSONException {<NEW_LINE>String absoluteDir = torrent.getLocationDir();<NEW_LINE>String relativeDir = settings.getDownloadDir();<NEW_LINE>if (relativeDir == null) {<NEW_LINE>// We can make no assumptions except the torrent's l...
relativeDir = relativeDir.substring(1);
412,369
public boolean onTouchActionUp(MotionEvent event) {<NEW_LINE>mReleaseEvent.posX = mWindowManagerParams.x;<NEW_LINE>mReleaseEvent.posY = mWindowManagerParams.y;<NEW_LINE>mReleaseEvent.vx = 0.0f;<NEW_LINE>mReleaseEvent.vy = 0.0f;<NEW_LINE>mReleaseEvent.rawX = event.getRawX();<NEW_LINE>mReleaseEvent<MASK><NEW_LINE>if (has...
.rawY = event.getRawY();
54,475
private static boolean collectItems(@NotNull List<String> levels, @NotNull YAMLKeyValue yamlKeyValue, @NotNull YamlTranslationCollector translationCollector) {<NEW_LINE>List<YAMLPsiElement> childElements = yamlKeyValue.getYAMLElements();<NEW_LINE><MASK><NEW_LINE>if (StringUtils.isBlank(keyText)) {<NEW_LINE>return true;...
String keyText = yamlKeyValue.getKeyText();
433,979
final void ensureSubDecor() {<NEW_LINE>if (mHasActionBar && !mSubDecorInstalled) {<NEW_LINE>if (mOverlayActionBar) {<NEW_LINE>mActivity.superSetContentView(R.layout.abc_action_bar_decor_overlay);<NEW_LINE>} else {<NEW_LINE>mActivity.superSetContentView(R.layout.abc_action_bar_decor);<NEW_LINE>}<NEW_LINE>mActionBarView ...
UIOPTION_SPLIT_ACTION_BAR_WHEN_NARROW.equals(getUiOptionsFromMetadata());
486,356
public void closeOpenWindows() {<NEW_LINE>if (infoWindow != null) {<NEW_LINE>if (infoWindow.isVisible()) {<NEW_LINE>infoWindow.setVisible(false);<NEW_LINE>add(panelInfos, infoTabIndex);<NEW_LINE>updateInfoTab();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (warningsWindow != null) {<NEW_LINE>if (warningsWindow.isVisible()) {<NEW_...
warningsList.getCountNr() + ")");
1,104,520
private boolean createExistingProject(final File existingDotProjectFile, IProgressMonitor monitor) throws CoreException {<NEW_LINE>SubMonitor sub = SubMonitor.convert(monitor, 100);<NEW_LINE>try {<NEW_LINE>ProjectRecord record = new ProjectRecord(existingDotProjectFile);<NEW_LINE>String projectName = record.getProjectN...
project.getFolder(GitRepository.GIT_DIR);
580,020
Trees.ValueDeclaration inferType(Trees.ValueDeclaration declaration, Trees.Expression expression, InferencePurpose inferenceKind) {<NEW_LINE>if (expression instanceof BoundAccessExpression) {<NEW_LINE>BoundAccessExpression scopeBoundAccess = (BoundAccessExpression) expression;<NEW_LINE>Accessors.BoundAccess lastAccess ...
.of(lastAccess.type));
896,568
private void createNutchUrls() throws IOException, URISyntaxException {<NEW_LINE>log.info("Creating nutch urls ...");<NEW_LINE>JobConf job = new JobConf(NutchData.class);<NEW_LINE>Path urls = new Path(options.getWorkPath(), URLS_DIR_NAME);<NEW_LINE>Utils.checkHdfsPath(urls);<NEW_LINE>String jobname = "Create nutch urls...
job.setOutputFormat(MapFileOutputFormat.class);
1,412,181
public Object handleResult(Object result) {<NEW_LINE>CompletionStage completionStageResult;<NEW_LINE>if (result instanceof CompletionStage) {<NEW_LINE>completionStageResult <MASK><NEW_LINE>} else {<NEW_LINE>throw new IllegalStateException("Cannot convert " + result + " to 'java.util.concurrent.CompletionStage'");<NEW_...
= (CompletionStage<?>) result;
199,086
private void rendererComponentInner(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) {<NEW_LINE>myTree = tree;<NEW_LINE>clear();<NEW_LINE>mySelected = selected;<NEW_LINE>myFocusedCalculated = false;<NEW_LINE>// We paint background if and only if tree path is selecte...
.getForeground(tree, selected));
1,254,449
public boolean contains(java.awt.Point p) {<NEW_LINE>// other relations which are selected are prioritized<NEW_LINE>for (GridElement other : HandlerElementMap.getHandlerForElement(this).getDrawPanel().getGridElements()) {<NEW_LINE>Selector s = HandlerElementMap.getHandlerForElement(other).getDrawPanel().getSelector();<...
) other).calcContains(modifiedP);
1,742,110
public ListPackagingConfigurationsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListPackagingConfigurationsResult listPackagingConfigurationsResult = new ListPackagingConfigurationsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth...
String currentParentElement = context.getCurrentParentElement();
1,517,230
public void delete(RangeRequest range) {<NEW_LINE>String shortTableName = getShortTableName();<NEW_LINE>switch(config.overflowMigrationState()) {<NEW_LINE>case UNSTARTED:<NEW_LINE>deleteOverflowRange(config.singleOverflowTable(), shortTableName, range);<NEW_LINE>break;<NEW_LINE>case IN_PROGRESS:<NEW_LINE>deleteOverflow...
(shortTableName).append(") */ ");
1,510,404
public static void init(FMLClientSetupEvent event) {<NEW_LINE>// Block render layers<NEW_LINE>ClientRegistrationUtil.setRenderLayer(RenderType.translucent(), GeneratorsBlocks.LASER_FOCUS_MATRIX, GeneratorsBlocks.REACTOR_GLASS);<NEW_LINE>ClientRegistrationUtil.setRenderLayer(renderType -> renderType == RenderType.solid(...
, 1, 0))));
163,955
public static GetCustomizationConfigListResponse unmarshall(GetCustomizationConfigListResponse getCustomizationConfigListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getCustomizationConfigListResponse.setRequestId(_ctx.stringValue("GetCustomizationConfigListResponse.RequestId"));<NEW_LINE>getCustomizationConfigListRe...
(_ctx.stringValue("GetCustomizationConfigListResponse.Message"));
1,568,409
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>Target target1 = new TargetControlledCreaturePermanent(1, 1, new FilterControlledCreaturePermanent(), true);<NEW_LINE>Target target2 = new TargetOpponent(t...
getPermanent(target1.getFirstTarget());
1,321,173
public KmsGrantConstraints unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>KmsGrantConstraints kmsGrantConstraints = new KmsGrantConstraints();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
JsonToken token = context.getCurrentToken();
8,192
public com.amazonaws.services.appstream.model.ResourceNotAvailableException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.appstream.model.ResourceNotAvailableException resourceNotAvailableException = new com.amazonaws.services.appstream.model.ResourceNotAvaila...
String currentParentElement = context.getCurrentParentElement();
1,388,832
public Object toUserData(Long id, List<Integer> tags, List<String> keysList, List<VectorTile.Tile.Value> valuesList) {<NEW_LINE>// Guard: empty<NEW_LINE>if (nullIfEmpty && tags.size() < 1 && (!addId || id == null)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Map<String, Object> userData = new HashMap<>(((tags.siz...
userData.put(idKey, id);
1,391,032
public static void launchBrowser(String url) throws IOException {<NEW_LINE>try {<NEW_LINE>if (isMac()) {<NEW_LINE>Class<?> <MASK><NEW_LINE>Method openURL = macUtils.getDeclaredMethod("openURL", String.class);<NEW_LINE>openURL.invoke(null, url);<NEW_LINE>} else if (isWindows())<NEW_LINE>Runtime.getRuntime().exec(createC...
macUtils = Class.forName("com.apple.mrj.MRJFileUtils");
65,442
public void run(RegressionEnvironment env) {<NEW_LINE>env.advanceTime(0);<NEW_LINE>String[] fields = new String[] { "theString" };<NEW_LINE>String epl = "create variable long SIZE = 1000;\n" + "@name('s0') select irstream * from SupportBean#expr_batch(newest_timestamp - oldest_timestamp > SIZE);\n";<NEW_LINE>env.compil...
runtimeSetVariable("s0", "SIZE", 500);
691,538
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static double value(com.sun.jdi.DoubleValue a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans.modules.debugger.jpda.JDIExceptionR...
jpda.JDIExceptionReporter.report(ex);
24,405
public CreateSoftwareUpdateJobResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateSoftwareUpdateJobResult createSoftwareUpdateJobResult = new CreateSoftwareUpdateJobResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren...
class).unmarshall(context));
1,346,912
// B.3 pg 62<NEW_LINE>public ECPoint twice() {<NEW_LINE>if (this.isInfinity()) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>ECCurve curve = this.getCurve();<NEW_LINE>SecP224K1FieldElement Y1 = (SecP224K1FieldElement) this.y;<NEW_LINE>if (Y1.isZero()) {<NEW_LINE>return curve.getInfinity();<NEW_LINE>}<NEW_LINE>SecP224K1Fi...
] t1 = Nat224.create();
969,418
public Optional<Product> importProduct(@NonNull final SyncProduct syncProduct, @Nullable Product product) {<NEW_LINE>final String uuid = syncProduct.getUuid();<NEW_LINE>if (product != null && !Objects.equals(product.getUuid(), uuid)) {<NEW_LINE>product = null;<NEW_LINE>}<NEW_LINE>if (product == null) {<NEW_LINE>product...
setName(syncProduct.getName());
606,214
private void processTaskCleanupsForRequest(String requestId, List<SingularityTaskCleanup> cleanupTasks, AtomicInteger killedTasks) {<NEW_LINE>final Multiset<SingularityDeployKey> incrementalCleaningTasks = HashMultiset.create(cleanupTasks.size());<NEW_LINE>final List<String> taskIdsForDeletedRequest = new ArrayList<>()...
add(cleanupTask.getTaskId());
1,646,353
public static void from_3BU8_to_3PU8(ByteBuffer src, int srcOffset, int srcStride, Planar<GrayU8> dst, DogArray_I8 work) {<NEW_LINE>work.resize(dst.width * 3);<NEW_LINE>GrayU8 r = dst.getBand(0);<NEW_LINE>GrayU8 g = dst.getBand(1);<NEW_LINE>GrayU8 b = dst.getBand(2);<NEW_LINE>int indexSrc = srcOffset;<NEW_LINE>for (int...
.startIndex + dst.stride * y;
435,675
public ScheduledFuture<File> exportDatapoints(AttributeRef[] attributeRefs, long fromTimestamp, long toTimestamp) {<NEW_LINE>return executorService.schedule(() -> {<NEW_LINE>String fileName = UniqueIdentifierGenerator.generateId() + ".csv";<NEW_LINE>StringBuilder sb = new StringBuilder(String.format("copy (select ad.ti...
}, 0, TimeUnit.MILLISECONDS);
1,676,187
public String dump(ASN1Primitive asn1Object) throws Asn1Exception, IOException {<NEW_LINE>// Get dump of the supplied ASN.1 object incrementing the indent level of the output<NEW_LINE>try {<NEW_LINE>indentLevel++;<NEW_LINE>if (asn1Object instanceof DERBitString) {<NEW_LINE>// special case of ASN1String<NEW_LINE>return ...
return dumpEnumerated((ASN1Enumerated) asn1Object);
1,269,244
final DescribeJobTemplateResult executeDescribeJobTemplate(DescribeJobTemplateRequest describeJobTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeJobTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
44,329
private static String buildOS() {<NEW_LINE>final String name = System.getProperty("os.name");<NEW_LINE>final String <MASK><NEW_LINE>final String patchLevel = System.getProperty("sun.os.patch.level");<NEW_LINE>final String arch = System.getProperty("os.arch");<NEW_LINE>final String bits = System.getProperty("sun.arch.da...
version = System.getProperty("os.version");
658,402
public static Calendar readDateTime(@NonNull final Data data, final int offset) {<NEW_LINE>if (data.size() < offset + 7)<NEW_LINE>return null;<NEW_LINE>final Calendar calendar = Calendar.getInstance();<NEW_LINE>final int year = data.getIntValue(Data.FORMAT_UINT16_LE, offset);<NEW_LINE>final int month = data.getIntValue...
Data.FORMAT_UINT8, offset + 3);
284,779
public void updateRoomUsers(RoomUsersAddBatchRequest body, Long roomId, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' wh...
String[] localVarContentTypes = { "application/json" };
1,206,997
public void applySpecialCrafting(ItemStack stack, SpecialRevolver r) {<NEW_LINE>if (r == null) {<NEW_LINE>ItemNBTHelper.remove(stack, "elite");<NEW_LINE>ItemNBTHelper.remove(stack, "flavour");<NEW_LINE>ItemNBTHelper.remove(stack, "baseUpgrades");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (r.tag != null && !r.tag.isEmpty(...
stack, "flavour", r.flavour);
609,221
private void updateCameraDriverSettings() {<NEW_LINE>Log.i(TAG, String.format("updateCameraDriverSettings() mCameraDriver=%d RTABMapLib.isBuiltWith(%d)=%d", mCameraDriver, mCameraDriver, RTABMapLib.isBuiltWith(nativeApplication, mCameraDriver) ? 1 : 0));<NEW_LINE>SharedPreferences sharedPref = PreferenceManager.getDefa...
Editor editor = sharedPref.edit();
1,019,621
public void onReceive(FlipperObject params, FlipperResponder responder) {<NEW_LINE>GetTableStructureRequest getTableStructureRequest = ObjectMapper.flipperObjectToGetTableStructureRequest(params);<NEW_LINE>if (getTableStructureRequest == null) {<NEW_LINE>responder.error(ObjectMapper.toErrorFlipperObject(DatabasesErrorC...
.ERROR_DATABASE_INVALID, DatabasesErrorCodes.ERROR_DATABASE_INVALID_MESSAGE));
941,493
public void removeInactiveAgents(int durationDays) {<NEW_LINE>if (durationDays < MIN_DURATION_DAYS_FOR_INACTIVITY) {<NEW_LINE>throw new IllegalArgumentException("duration may not be less than " + MIN_DURATION_DAYS_FOR_INACTIVITY + " days");<NEW_LINE>}<NEW_LINE>Map<String, List<String>> inactiveAgentMap = new TreeMap<>(...
this.applicationIndexDao.selectAgentIds(applicationName);
817,250
private static String addNamespaceDeclIfNeeded(XmlDocument doc, String tags) {<NEW_LINE>if (doc.getDocument() == null) {<NEW_LINE>return tags;<NEW_LINE>}<NEW_LINE>if (doc.getDocument().getDocumentElement() == null) {<NEW_LINE>return tags;<NEW_LINE>}<NEW_LINE>Matcher matcher = START_TAG_RE.matcher(tags);<NEW_LINE>Map<Ch...
), e.getValue());
460,071
public void init(ServletConfig config) {<NEW_LINE>ServletContext context = config.getServletContext();<NEW_LINE>shouldForwardToFilesContext = getFileContextForwardingFlagFrom(config);<NEW_LINE>if (context.getInitParameter("WireMockFileSourceRoot") != null) {<NEW_LINE>wiremockFileSourceRoot = context.getInitParameter("W...
ChunkedEncodingPolicy.class.getName());
46,452
public static void main(String[] args) {<NEW_LINE>// Queue for incoming messages represented as Flux<NEW_LINE>// Imagine that every fireAndForget that is pushed is processed by a worker<NEW_LINE>BlockingQueue<Runnable> tasksQueue = new ArrayBlockingQueue<>(QUEUE_CAPACITY);<NEW_LINE>ThreadPoolExecutor threadPoolExecutor...
.onClose().block();
1,825,650
private static FullRowType apply(RelDataTypeFactory typeFactory, RelDataType bottomRowType, List<Label> inputs) {<NEW_LINE>final ImmutableMap.Builder<Integer, Integer> newFullColumnIndexMap = ImmutableMap.builder();<NEW_LINE>final ImmutableBitSet.Builder newColumnInputSet = ImmutableBitSet.builder();<NEW_LINE>// build ...
= rightInput.getFullRowType().fullColumnMapping;
120,322
private void processDeferredConcepts() {<NEW_LINE>int codeCount = 0, relCount = 0;<NEW_LINE>StopWatch stopwatch = new StopWatch();<NEW_LINE>int count = Math.min(1000, myDeferredConcepts.size());<NEW_LINE>ourLog.debug("Saving {} deferred concepts...", count);<NEW_LINE>while (codeCount < count && myDeferredConcepts.size(...
assert next.getParent() != null;
518,494
public static Perfetto.Data.Builder enumerate(Perfetto.Data.Builder data) {<NEW_LINE>ImmutableListMultimap<String, CounterInfo> counters = data.getCounters(CounterInfo.Type.Global);<NEW_LINE>CounterInfo battCap = onlyOne(counters.get("batt.capacity_pct"));<NEW_LINE>CounterInfo battCharge = onlyOne(counters.get("batt.ch...
(counters.get("batt.current_ua"));
689,177
private I_C_Invoice_Candidate createCandidateForOrderLine(final I_C_OrderLine orderLine) {<NEW_LINE>final Properties ctx = InterfaceWrapperHelper.getCtx(orderLine);<NEW_LINE>final String trxName = InterfaceWrapperHelper.getTrxName(orderLine);<NEW_LINE>Check.assume(Env.getAD_Client_ID(ctx) == orderLine.getAD_Client_ID()...
ofRepoIdOrNone(orderLine.getM_AttributeSetInstance_ID());
1,704,732
public void unarchive(final List<Path> selected) {<NEW_LINE>final List<Path> expanded = new ArrayList<Path>();<NEW_LINE>for (final Path s : selected) {<NEW_LINE>final Archive archive = Archive.forName(s.getName());<NEW_LINE>if (null == archive) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>new OverwriteController(parent).ov...
workdir(), selected, expanded);
1,586,026
public UserDetails mapUserFromContext(DirContextOperations ctx, String username, Collection<? extends GrantedAuthority> authorities) {<NEW_LINE>String dn = ctx.getNameInNamespace();<NEW_LINE>this.logger.debug(LogMessage.format("Mapping user details from context with DN %s", dn));<NEW_LINE>LdapUserDetailsImpl.Essence es...
ctx.getObjectAttribute(this.passwordAttributeName);
338,734
public static ListCompanyRegOrdersResponse unmarshall(ListCompanyRegOrdersResponse listCompanyRegOrdersResponse, UnmarshallerContext _ctx) {<NEW_LINE>listCompanyRegOrdersResponse.setRequestId(_ctx.stringValue("ListCompanyRegOrdersResponse.RequestId"));<NEW_LINE>listCompanyRegOrdersResponse.setNextPage(_ctx.booleanValue...
(_ctx.booleanValue("ListCompanyRegOrdersResponse.PrePage"));
348,367
private void throwInvalidSubModuleError(Toml toml, Module module) {<NEW_LINE>String moduleName = module.getName();<NEW_LINE>TomlNode errorNode = null;<NEW_LINE>Optional<TomlValueNode> valueNode = toml.get(moduleName);<NEW_LINE>List<Toml> tomlTables = toml.getTables(moduleName);<NEW_LINE>if (valueNode.isEmpty()) {<NEW_L...
get(0).rootNode();
1,047,301
SyncItems fetchSyncItems() {<NEW_LINE>assert !SwingUtilities.isEventDispatchThread();<NEW_LINE>SyncItems items = null;<NEW_LINE>String displayName;<NEW_LINE>if (sourceFiles == SourceFiles.PROJECT) {<NEW_LINE>displayName = Bundle.SyncController_fetching_project(phpProject.getName());<NEW_LINE>} else {<NEW_LINE>displayNa...
TransferFile> remoteFiles = getRemoteFiles(sources);
1,470,251
public void loadFrom(@Nonnull DirectoryStorageData data, @Nullable File dir, @Nullable TrackingPathMacroSubstitutor pathMacroSubstitutor) {<NEW_LINE>if (dir == null || !dir.exists()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Interner<String> interner = Interner.createStringInterner();<NEW_LINE>File[] files = dir.listFiles...
") in " + file.getPath());
1,512,941
public ClassifyResult classify(BiPredicate<Writer, Pair<List<Object>, Map<Integer, ParameterContext>>> identicalSk, SourceRows sourceRows, ExecutionContext ec, ClassifyResult result) {<NEW_LINE>final List<DuplicateCheckResult> classifiedRows = sourceRows.valueRows;<NEW_LINE>classifiedRows.stream().filter(r -> !r.skipUp...
insertThenUpdate, doUpdate, ec, result);
853,322
private static ScalarValue[] parseTRBLValue(String val) {<NEW_LINE>ScalarValue[] out = new ScalarValue[4];<NEW_LINE>String[] parts = Util.split(val, " ");<NEW_LINE>int len = parts.length;<NEW_LINE>switch(len) {<NEW_LINE>case 1:<NEW_LINE>ScalarValue v = parseSingleTRBLValue(parts[0]);<NEW_LINE>for (int i = 0; i < 4; i++...
out[Component.RIGHT] = v2;
302,146
public void send(EmailDetails theDetails) {<NEW_LINE>StopWatch stopWatch = new StopWatch();<NEW_LINE>ourLog.info("Sending email for subscription {} from [{}] to recipients: [{}]", theDetails.getSubscriptionId(), theDetails.getFrom(<MASK><NEW_LINE>Email email = theDetails.toEmail();<NEW_LINE>myMailSvc.sendMail(email, ()...
), theDetails.getTo());
394,634
public Category read(JsonReader in) throws IOException {<NEW_LINE>JsonObject jsonObj = elementAdapter.<MASK><NEW_LINE>validateJsonObject(jsonObj);<NEW_LINE>// store additional fields in the deserialized instance<NEW_LINE>Category instance = thisAdapter.fromJsonTree(jsonObj);<NEW_LINE>for (Map.Entry<String, JsonElement>...
read(in).getAsJsonObject();
661,524
public void replayDropDb(String dbName, boolean isForceDrop) throws DdlException {<NEW_LINE>tryLock(true);<NEW_LINE>try {<NEW_LINE>Database db = fullNameToDb.get(dbName);<NEW_LINE>db.writeLock();<NEW_LINE>try {<NEW_LINE>Set<String> tableNames = db.getTableNamesWithLock();<NEW_LINE>unprotectDropDb(db, isForceDrop, true)...
remove(db.getId());
701,180
private void locateKitsInRegistry(String baseKey) {<NEW_LINE>String[] versions = { VERSION_KIT_8, VERSION_KIT_81 };<NEW_LINE>String[] keys = { REGISTRY_KIT_8, REGISTRY_KIT_81 };<NEW_LINE>for (int i = 0; i != keys.length; ++i) {<NEW_LINE>try {<NEW_LINE>File kitDir = FileUtils.canonicalize(new File(windowsRegistry.getStr...
, versions[i], kitDir);
1,050,949
public AnalysisResult execute(File baseDir, ReportOptions data, SettingsFactory settings, Map<String, String> environmentVariables) {<NEW_LINE>if (data.getVerbosity() == VERBOSE) {<NEW_LINE>Log.getLogger().info("Project base directory is " + data.getProjectBase());<NEW_LINE>Log.getLogger().info("-----------------------...
timings, data.getVerbosity());
286,881
public void renderJSON(PrintWriter writer, Map<String, String> params) {<NEW_LINE>JsonArray json = new JsonArray();<NEW_LINE>for (ConsumerRecord<byte[], byte[]> record : Lists.reverse(retrieveActionReportMessages())) {<NEW_LINE>try {<NEW_LINE>JsonObject jsonRecord = new JsonObject();<NEW_LINE>BinaryDecoder binaryDecode...
(result.getDescription()));
1,301,355
public void uploadFromFile3() throws IOException {<NEW_LINE>// BEGIN: com.azure.storage.blob.BlobClient.uploadFromFileWithResponse#BlobUploadFromFileOptions-Duration-Context<NEW_LINE>BlobHttpHeaders headers = new BlobHttpHeaders().setContentMd5("data".getBytes(StandardCharsets.UTF_8)).setContentLanguage("en-US").setCon...
ParallelTransferOptions().setBlockSizeLong(blockSize);
1,521,069
private boolean migrate(Collection<ProtectedRegion> regions) throws MigrationException {<NEW_LINE>// Name scan pass<NEW_LINE>Set<String> names = getNames(regions);<NEW_LINE>if (!names.isEmpty()) {<NEW_LINE>// This task logs the progress of conversion (% converted...)<NEW_LINE>// periodically<NEW_LINE>TimerTask task = n...
throw new MigrationException("The name -> UUID service failed", e);
813,020
// This is for error reporting for bad targets at annotation type declaration site (as opposed to the repeat site)<NEW_LINE>private static void checkContainerAnnotationTypeTarget(ASTNode culpritNode, Scope scope, ReferenceBinding containerType, ReferenceBinding repeatableAnnotationType) {<NEW_LINE>long tagBits = repeat...
TagBits.AnnotationForField, TypeConstants.UPPER_FIELD);
275,633
public byte[] decode(String attr, Hashtable<String, Integer> labelToPc) {<NEW_LINE>if (Options.v().verbose()) {<NEW_LINE>logger.debug("[] JasminAttribute decode...");<NEW_LINE>}<NEW_LINE>List<byte[]> attributeHunks = new LinkedList<byte[]>();<NEW_LINE>int attributeSize = 0, tablesize = 0;<NEW_LINE>boolean isLabel = att...
throw new RuntimeException("PC is null, the token is " + token);
387,903
void closeInternals(boolean waitForCloseCompletion) {<NEW_LINE>if (!this.getIsClosed()) {<NEW_LINE>if (this.receiveLink != null && this.receiveLink.getLocalState() != EndpointState.CLOSED) {<NEW_LINE>try {<NEW_LINE>this.parent.underlyingFactory.scheduleOnReactorThread(new DispatchHandler() {<NEW_LINE><NEW_LINE>@Overrid...
completeFuture(this.closeFuture, null);
748,832
private void discoverAction(JSONArray args, CallbackContext callbackContext) {<NEW_LINE>if (isNotInitialized(callbackContext, true)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>JSONObject obj = getArgsObject(args);<NEW_LINE>if (isNotArgsObject(obj, callbackContext)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String address = ge...
(keyDiscoveredState).toString());
69,158
private void init() {<NEW_LINE>exceptionUnmarshallers.add(new SubscriptionLimitExceededExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshallers.add(new InvalidParameterExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshallers.add(new BatchEntryIdsNotDistinctExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshallers.add...
.add(new TagPolicyExceptionUnmarshaller());
360,426
private Response deleteRemovedProperties(Collection<String> newProps) {<NEW_LINE>List<String> existingList = new ArrayList<>();<NEW_LINE>Dom parent = getEntity();<NEW_LINE>if (parent == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<Dom> existingProps;<NEW_LINE>synchronized (parent) {<NEW_LINE>existingProps = p...
resp = deleteProperty(null, onePropName);
1,486,396
public void onInitializeClient() {<NEW_LINE>FabricLoader.getInstance().getModContainer("sodium").ifPresent(modContainer -> {<NEW_LINE>sodiumInstalled = true;<NEW_LINE>String versionString = modContainer.getMetadata().getVersion().getFriendlyString();<NEW_LINE>// This makes it so that if we don't have the right version ...
setupCommands(Minecraft.getInstance());
1,718,383
protected void receiveAnswer(Response.Answer fromDownstream, int iteration) {<NEW_LINE>LOG.trace(<MASK><NEW_LINE>if (isTerminated())<NEW_LINE>return;<NEW_LINE>Request toDownstream = fromDownstream.sourceRequest();<NEW_LINE>Request fromUpstream = fromUpstream(toDownstream);<NEW_LINE>ConclusionRequestState<? extends Part...
"{}: received Answer: {}", name(), fromDownstream);
500,956
public static I_C_Invoice_Candidate createIcAndSetCommonFields(@NonNull final I_C_Flatrate_Term term) {<NEW_LINE>// Services<NEW_LINE>final DimensionService dimensionService = SpringContextHolder.instance.getBean(DimensionService.class);<NEW_LINE>final IOrderDAO orderDAO = Services.get(IOrderDAO.class);<NEW_LINE>final ...
setC_Currency_ID(term.getC_Currency_ID());
789,312
public void actionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>org.openide.DialogDescriptor desc = new ConfirmDialog(NbBundle.getMessage<MASK><NEW_LINE>java.awt.Dialog dialog = org.openide.DialogDisplayer.getDefault().createDialog(desc);<NEW_LINE>dialog.setVisible(true);<NEW_LINE>if (org.openide.DialogDescripto...
(SecurityMultiViewElement.class, "TXT_RemoveSecurityConstraintConfirm"));
682,677
private Pair<String, String> queryGroupInfo() {<NEW_LINE>Pair<String, String> pair = null;<NEW_LINE>final HANDLE pHandle = Kernel32.INSTANCE.OpenProcess(WinNT.PROCESS_QUERY_INFORMATION, false, getProcessID());<NEW_LINE>if (pHandle != null) {<NEW_LINE>final HANDLEByReference phToken = new HANDLEByReference();<NEW_LINE>i...
Kernel32.INSTANCE.CloseHandle(token);
407,932
private void replaceNull(LocalValue<?> key, Object value, int index) {<NEW_LINE>Entry[] tab = table;<NEW_LINE>int len = tab.length;<NEW_LINE>Entry e;<NEW_LINE>int slotToExpunge = index;<NEW_LINE>for (int i = prevIndex(index, len); (e = tab[i]) != null; i = prevIndex(i, len)) if (e.k == null) {<NEW_LINE>slotToExpunge = ...
(removeNull(slotToExpunge), len);
1,818,606
public void actionPerformed(final ActionEvent evt, final JTextComponent component) {<NEW_LINE>if (component == null || !component.isEditable() || !component.isEnabled()) {<NEW_LINE>Toolkit.getDefaultToolkit().beep();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final BaseDocument doc = (BaseDocument) component.getDocument();<N...
source = Source.create(doc);
766,360
public final GopListContext gopList() throws RecognitionException {<NEW_LINE>GopListContext _localctx = new GopListContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(1184);<NEW_LINE>gop();<NEW_LINE>setState(1188);<NEW_LINE>_errH...
enterRule(_localctx, 118, RULE_gopList);
1,669,362
private Coordinate[] cubicBezier(final Coordinate start, final Coordinate end, final Coordinate ctrl1, final Coordinate ctrl2, final int nv) {<NEW_LINE>final Coordinate[] curve = new Coordinate[nv];<NEW_LINE>final Coordinate[] buf = new Coordinate[3];<NEW_LINE>for (int i = 0; i < buf.length; i++) {<NEW_LINE>buf[i] = ne...
1] = new Coordinate(end);
988,681
private DetailedExitCode checkCwdInWorkspace(EventHandler eventHandler) {<NEW_LINE>if (!commandAnnotation.mustRunInWorkspace()) {<NEW_LINE>return DetailedExitCode.success();<NEW_LINE>}<NEW_LINE>if (!workspace.getDirectories().inWorkspace()) {<NEW_LINE>String message = "The '" + commandAnnotation.name() + "' command is ...
createDetailedExitCode(message, Code.IN_OUTPUT_DIRECTORY);
1,805,133
static ExecutorService buildExecutorService(Configuration configuration) {<NEW_LINE>Integer corePoolSize = configuration.getOrDefault(PARALLEL_BACKEND_EXECUTOR_SERVICE_CORE_POOL_SIZE);<NEW_LINE>Integer maxPoolSize = configuration.getOrDefault(PARALLEL_BACKEND_EXECUTOR_SERVICE_MAX_POOL_SIZE);<NEW_LINE>Long keepAliveTime...
corePoolSize, maxPoolSize, keepAliveTime, threadFactory);
333,510
private int markIntersectionEdge(Object g, int idx, int[] yPoints, int[] xPoints, int nPoints, int[] intersections, int intersectionsCount) {<NEW_LINE>intersections<MASK><NEW_LINE>if ((yPoints[idx] - yPoints[(idx + 1) % nPoints]) * (yPoints[idx] - yPoints[(idx + nPoints - 1) % nPoints]) > 0) {<NEW_LINE>intersections[in...
[intersectionsCount] = xPoints[idx];
1,328,008
public void traverse(ASTVisitor visitor, BlockScope scope) {<NEW_LINE>if (visitor.visit(this, scope)) {<NEW_LINE>if (this.annotations != null) {<NEW_LINE>int annotationsLevels = this.annotations.length;<NEW_LINE>for (int i = 0; i < annotationsLevels; i++) {<NEW_LINE>int annotationsLength = this.annotations[i] == null ?...
visitor.endVisit(this, scope);
449,817
private static List<SQLAlterTableItem> reverse(SQLAlterTableAddConstraint addConstraint) {<NEW_LINE>List<SQLAlterTableItem> reversedItems = new ArrayList<>();<NEW_LINE>SQLConstraint constraint = addConstraint.getConstraint();<NEW_LINE>if (constraint instanceof MySqlPrimaryKey) {<NEW_LINE>SQLAlterTableDropPrimaryKey dro...
SQLName indexName = constraint.getName();
1,605,626
public void removeNodeComment(Long commentId, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'commentId' is set<NEW_LINE>if (commentId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'commentId' when calling ...
HashMap<String, String>();
1,657,944
public List<StringMetaDataBo> mapRow(Result result, int rowNum) throws Exception {<NEW_LINE>if (result.isEmpty()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>final byte[] rowKey = getOriginalKey(result.getRow());<NEW_LINE>final MetaDataRowKey key = decoder.decodeRowKey(rowKey);<NEW_LINE>List<StringMe...
), cell.getValueLength());
1,550,950
public void readSettings(Properties p, String propertyPrefix) {<NEW_LINE>ETableColumnModel <MASK><NEW_LINE>etcm.readSettings(p, propertyPrefix, this);<NEW_LINE>setColumnModel(etcm);<NEW_LINE>String scs = p.getProperty(propertyPrefix + SEARCH_COLUMN);<NEW_LINE>if (scs != null) {<NEW_LINE>try {<NEW_LINE>int index = Integ...
etcm = (ETableColumnModel) createDefaultColumnModel();
560,538
final DeleteLicenseResult executeDeleteLicense(DeleteLicenseRequest deleteLicenseRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteLicenseRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,538,996
public static void forwardBackWardDemo() {<NEW_LINE>System.out.println("DEMO: Forward-BackWard");<NEW_LINE>System.out.println("======================");<NEW_LINE>System.out.println("Umbrella World");<NEW_LINE>System.out.println("--------------");<NEW_LINE>ForwardBackward uw = new ForwardBackward(GenericTemporalModelFac...
uw.forwardBackward(evidence, prior);
701,690
void createBuildContent(String groupId, String version) throws IOException {<NEW_LINE>final String buildContent = getModel().getBuildContent();<NEW_LINE>StringBuilder res = new StringBuilder(buildContent);<NEW_LINE>if (!buildContent.contains("id(\"io.quarkus\")")) {<NEW_LINE>res.append("plugins {");<NEW_LINE>res.append...
setBuildContent(res.toString());