idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
540,813
public static void reset(boolean isTerminating) {<NEW_LINE>if (_instance == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int result = reset(hotkeys, isTerminating);<NEW_LINE>if (result > 0) {<NEW_LINE>Debug.log(3, "HotkeyManager: reset: removed all user hotkeys.");<NEW_LINE>}<NEW_LINE>if (result < 0 && !isTerminating) ...
result = reset(hotkeysGlobal, isTerminating);
1,294,135
private Optional<String> genericGetResolvedFieldOrAlias(Field field, BibDatabase database, BiFunction<BibEntry, Field, Optional<String>> getFieldOrAlias) {<NEW_LINE>if (InternalField.TYPE_HEADER.equals(field) || InternalField.OBSOLETE_TYPE_HEADER.equals(field)) {<NEW_LINE>return Optional.of(type.get().getDisplayName())...
().type.get();
1,762,333
final UpdateServicePrimaryTaskSetResult executeUpdateServicePrimaryTaskSet(UpdateServicePrimaryTaskSetRequest updateServicePrimaryTaskSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateServicePrimaryTaskSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
879,913
public void run() {<NEW_LINE>boolean autoscalePref = NbPreferences.forModule(ReportPanel.class).getBoolean(PREF_AUTOSCALE, containers[0].getUnloader().isAutoScale());<NEW_LINE>boolean selfLoopPref = NbPreferences.forModule(ReportPanel.class).getBoolean(PREF_SELF_LOOP, containers[0].getUnloader().allowSelfLoop());<NEW_L...
getUnloader().containsAutoNodes());
1,481,226
Map<String, FeedScopedId> createTripCalendar(Iterable<ServiceJourney> serviceJourneys) {<NEW_LINE>// Create a map to store the result<NEW_LINE>Map<String, FeedScopedId> <MASK><NEW_LINE>for (ServiceJourney sj : serviceJourneys) {<NEW_LINE>Set<ServiceDate> serviceDates;<NEW_LINE>// Add scheduled dayTypes<NEW_LINE>service...
serviceIdsBySJId = new HashMap<>();
1,198,686
private void addAddresses(VCard vCard) {<NEW_LINE>List<View> addressList = new ArrayList<>();<NEW_LINE>String homeAddress = null;<NEW_LINE>for (AddressProperty property : AddressProperty.values()) {<NEW_LINE>homeAddress = addString(homeAddress, vCard.getAddressFieldHome(property.name()), "\n");<NEW_LINE>}<NEW_LINE>addI...
AddressType.HOME)), homeAddress);
1,838,372
public void createFile(AutoTypeImage imageType, int minContinuous) throws FileNotFoundException {<NEW_LINE>className = "ImplFastCorner" + minContinuous + "_" + imageType.getAbbreviatedType();<NEW_LINE>this.imageType = imageType;<NEW_LINE>this.sumType = imageType.getSumType();<NEW_LINE>this.bitwise = imageType.getBitWis...
System.out.println("Done");
1,288,396
private void buildNearestPoi(ViewGroup viewGroup) {<NEW_LINE>final int position = viewGroup.getChildCount();<NEW_LINE>final WeakReference<ViewGroup> viewGroupRef = new WeakReference<>(viewGroup);<NEW_LINE>buildNearestPoiRow(new SearchAmenitiesListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onFinish(List<...
isDividerAtPosition(viewGroup, insertIndex - 1);
577,099
private void init() {<NEW_LINE>dataBlockCount = table.getDataBlockCount();<NEW_LINE>if (fields == null) {<NEW_LINE>fields = table.getColNames();<NEW_LINE>}<NEW_LINE>rowReader = table.getRowReader(true);<NEW_LINE>rowDataReader = new ObjectReader(rowReader, table.groupTable.getBlockSize() - GroupTable.POS_SIZE);<NEW_LINE...
int len = this.fields.length;
528,437
private void syncChecked() throws KeeperException {<NEW_LINE>final ZooKeeperClient client = client("sync");<NEW_LINE>final List<String> nodes = client.getChildren(path);<NEW_LINE>final Map<String, byte[]> snapshot = entries.get();<NEW_LINE>// Get new remote state<NEW_LINE>remote = Maps.newHashMap();<NEW_LINE>for (final...
ZKPaths.makePath(path, node);
499,075
public void showPanels(boolean show, boolean showDefaults, boolean saveSettings) {<NEW_LINE>if (!supportsPanels() || show == isPanelsVisible()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>CTabItem activePanelTab = panelFolder.getSelection();<NEW_LINE>if (!show) {<NEW_LINE>viewerSash.setMaximizedControl(viewerSash.getChildre...
.getControl().setFocus();
1,774,467
protected void exec() {<NEW_LINE>Op op = modAlgebra.getOp();<NEW_LINE>if (op == null) {<NEW_LINE>System.err.println("No query expression to execute");<NEW_LINE>throw new TerminationException(9);<NEW_LINE>}<NEW_LINE>Dataset dataset = modDataset.getDataset();<NEW_LINE>// Check there is a dataset.<NEW_LINE>if (dataset == ...
PlanOp(op, null, qIter);
698,754
public HttpClientConnectionManager newConnectionManager(boolean disableSslValidation, int maxTotalConnections, int maxConnectionsPerRoute, long timeToLive, TimeUnit timeUnit, RegistryBuilder registryBuilder) {<NEW_LINE>if (registryBuilder == null) {<NEW_LINE>registryBuilder = RegistryBuilder.<ConnectionSocketFactory>cr...
> registry = registryBuilder.build();
1,708,037
private void createActions() {<NEW_LINE>searchAction = new NavigatableContextAction("Search Memory", getName(), false) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerformed(NavigatableActionContext context) {<NEW_LINE>setNavigatable(context.getNavigatable());<NEW_LINE>invokeSearchDialog(context);<NEW_LINE...
String[] { "&Search", "&Memory..." };
1,640,557
public MappeableContainer xor(MappeableBitmapContainer value2) {<NEW_LINE>int newCardinality = 0;<NEW_LINE>if (BufferUtil.isBackedBySimpleArray(this.bitmap) && BufferUtil.isBackedBySimpleArray(value2.bitmap)) {<NEW_LINE>long[] b = this.bitmap.array();<NEW_LINE>long[] v2 = value2.bitmap.array();<NEW_LINE>int len <MASK><...
= this.bitmap.limit();
1,175,406
private STNode parseMemberRhsInStmtStartWithBrace(STNode identifier, STNode colon, STNode secondIdentifier, STNode secondNameRef) {<NEW_LINE>STNode typedBPOrExpr = parseTypedBindingPatternOrMemberAccess(secondNameRef, <MASK><NEW_LINE>if (isExpression(typedBPOrExpr.kind)) {<NEW_LINE>return parseMemberWithExprInRhs(ident...
false, true, ParserRuleContext.AMBIGUOUS_STMT);
357,501
public Info findSplit(Relation<? extends NumberVector> relation, int dims, ArrayModifiableDBIDs sorted, DBIDArrayMIter iter, int left, int right, SortDBIDsBySingleDimension comp) {<NEW_LINE>int bestdim = 0, bestpos = (right - left) >>> 1;<NEW_LINE>double bestscore = Double.NEGATIVE_INFINITY;<NEW_LINE>double[] buf = new...
(sum - s1) / --j;
828,370
protected void prepareSumAggregators(List<ItemSum> functions, List<ItemSum> sumFunctions, List<FieldPacket> packets, boolean isAllPushDown) {<NEW_LINE>LOGGER.debug("prepare_sum_aggregators");<NEW_LINE>for (int i = 0; i < functions.size(); i++) {<NEW_LINE>ItemSum func = functions.get(i);<NEW_LINE>ResultStore store = nul...
setMemSizeController(session.getOtherBufferMC());
831,381
private static String newTestString(Random random, BitSet bitSet, int percentMatching) {<NEW_LINE>final String allMatchingChars = allMatchingChars(bitSet);<NEW_LINE>final char[<MASK><NEW_LINE>// Fill with matching chars.<NEW_LINE>for (int i = 0; i < result.length; i++) {<NEW_LINE>result[i] = allMatchingChars.charAt(ran...
] result = new char[STRING_LENGTH];
740,325
public static DescribeGatewaySMBUsersResponse unmarshall(DescribeGatewaySMBUsersResponse describeGatewaySMBUsersResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeGatewaySMBUsersResponse.setRequestId(_ctx.stringValue("DescribeGatewaySMBUsersResponse.RequestId"));<NEW_LINE>describeGatewaySMBUsersResponse.setTotalCou...
(_ctx.booleanValue("DescribeGatewaySMBUsersResponse.Success"));
1,050,328
public void loadIcons(IconPack pack) {<NEW_LINE>_pack = pack;<NEW_LINE>_query = null;<NEW_LINE>_icons = new ArrayList<>(_pack.getIcons());<NEW_LINE>_categories.clear();<NEW_LINE>Comparator<IconPack.Icon> iconCategoryComparator = (i1, i2) -> {<NEW_LINE>String c1 = <MASK><NEW_LINE>String c2 = getCategoryString(i2.getCate...
getCategoryString(i1.getCategory());
1,631,541
public void execute() {<NEW_LINE>if (helpFlag) {<NEW_LINE>String commandUsageInfo = BLauncherCmd.getCommandUsageInfo(SEARCH_COMMAND);<NEW_LINE>outStream.println(commandUsageInfo);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (null != debugPort) {<NEW_LINE>System.setProperty(SYSTEM_PROP_BAL_DEBUG, debugPort);<NEW_LINE>}<NEW_...
searchArgs = argList.get(0);
61,712
public void clearResponses(final SessionLabel sessionLabel, final UserIdentity userIdentity, final ChaiUser theUser, final String userGUID) throws PwmUnrecoverableException {<NEW_LINE>if (userGUID == null || userGUID.length() < 1) {<NEW_LINE>throw new PwmUnrecoverableException(new ErrorInformation<MASK><NEW_LINE>}<NEW_...
(PwmError.ERROR_MISSING_GUID, "cannot clear responses to localDB, user does not have a pwmGUID"));
295,932
private void updateState(FeedResponse<T> response, RxDocumentServiceRequest request) {<NEW_LINE>String transformedContinuation = this.applyServerResponseContinuation(response.getContinuationToken(), request);<NEW_LINE>ModelBridgeInternal.setFeedResponseContinuationToken(transformedContinuation, response);<NEW_LINE>if (...
this.operationContextTextProvider.get());
678,814
public <U extends IAggregableReduceOp<T, Writable>> void combine(U acc) {<NEW_LINE>if (this.getClass().isAssignableFrom(acc.getClass())) {<NEW_LINE>AggregableVariance<T> accu = (AggregableVariance<T>) acc;<NEW_LINE>Long totalCount = count + accu.getCount();<NEW_LINE>Double totalMean = (accu.getMean() * accu.getCount() ...
otherVariance) * (totalCount - 1);
626,239
private static boolean matchHeader(HeaderMatcher headerMatcher, @Nullable String value) {<NEW_LINE>if (headerMatcher.present() != null) {<NEW_LINE>return (value == null) == headerMatcher.present().equals(headerMatcher.inverted());<NEW_LINE>}<NEW_LINE>if (value == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boole...
safeRegEx().matches(value);
1,807,300
public void generateNamespaceNd4j(NamespaceOps namespace, GeneratorConfig config, File directory, String fileName) throws IOException {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("#include <NDArrayFactory.h>\n\n").append("namespace nd4j {\n");<NEW_LINE>append(4, sb, "namespace " + namespace.get...
.addIndent(s, 8));
1,086,336
public Flux<ReactiveRedisConnection.CommandResponse<XInfoCommand, StreamInfo.XInfoStream>> xInfo(Publisher<XInfoCommand> publisher) {<NEW_LINE>return execute(publisher, command -> {<NEW_LINE>Assert.notNull(command.getKey(), "Key must not be null!");<NEW_LINE>byte[] k = <MASK><NEW_LINE>Mono<org.redisson.api.StreamInfo<b...
toByteArray(command.getKey());
1,329,021
boolean canCloseAll() {<NEW_LINE>Program[] programs = programMgr.getAllOpenPrograms();<NEW_LINE>List<Program> saveList = new ArrayList<>();<NEW_LINE>List<Program> lockList = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>for (Program program : programs) {<NEW_LINE>// if (programs[i].isTemporary()) {<NEW_LINE>// continue;<N...
> it = lockList.iterator();
1,430,459
public ListResolversByFunctionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListResolversByFunctionResult listResolversByFunctionResult = new ListResolversByFunctionResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
int originalDepth = context.getCurrentDepth();
1,640,581
protected void paintDisplayerBackground(Graphics g, JComponent c) {<NEW_LINE>int tabCount = getDataModel().size();<NEW_LINE>if (0 == tabCount)<NEW_LINE>return;<NEW_LINE>int x = getLayoutModel(<MASK><NEW_LINE>x += getLayoutModel().getW(tabCount - 1) - 5;<NEW_LINE>int y = 0;<NEW_LINE>int width = c.getWidth() - x;<NEW_LIN...
).getX(tabCount - 1);
1,332,982
// </editor-fold>//GEN-END:initComponents<NEW_LINE>private void btnStackActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_btnStackActionPerformed<NEW_LINE>StringWriter sw = new StringWriter();<NEW_LINE>exception.printStackTrace(new PrintWriter(sw));<NEW_LINE>JPanel pnl = new JPanel();<NEW_LI...
.setLayout(new BorderLayout());
141,388
public CreateServiceProfileResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateServiceProfileResult createServiceProfileResult = new CreateServiceProfileResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme...
JsonToken token = context.getCurrentToken();
1,792,501
private void readRHS(BufferedReader br) throws IOException {<NEW_LINE>br.reset();<NEW_LINE>String line = br.readLine();<NEW_LINE>if (line == null || !line.startsWith(TAG_RHS)) {<NEW_LINE>throw new ParserException("No tag \"RHS\" found");<NEW_LINE>}<NEW_LINE>line = br.readLine();<NEW_LINE>String[] values;<NEW_LINE>while...
1], values[2]);
288,660
void computeHints(JsHintsProvider.JsRuleContext context, List<Hint> hints, int offset, HintsProvider.HintsManager manager) throws BadLocationException {<NEW_LINE>if (ecmaEditionProjectBelow(context, ECMA6)) {<NEW_LINE>Snapshot snapshot = context.getJsParserResult().getSnapshot();<NEW_LINE>TokenSequence<? extends JsToke...
addHint(context, hints, returnOffsetRange);
1,583,462
static void writeAssemblySAMFile(final String outputAssembliesFile, final List<AlignedAssemblyOrExcuse> alignedAssemblyOrExcuseList, final SAMFileHeader header, final SAMFileHeader.SortOrder assemblyAlnSortOrder) {<NEW_LINE>final String sampleId = SVUtils.getSampleId(header);<NEW_LINE>final SAMReadGroupRecord contigAli...
= new SAMReadGroupRecord(SVUtils.GATKSV_CONTIG_ALIGNMENTS_READ_GROUP_ID);
721,467
private void executeIteration(int[] rgb, Mask mask, int width, int height) {<NEW_LINE>Mask.MaskIterator iterator = mask.new MaskIterator();<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>int pixelIndex = iterator.next();<NEW_LINE>int x = pixelIndex % width;<NEW_LINE>int y = pixelIndex / width;<NEW_LINE>int r = 0<MASK><...
, g = 0, b = 0;
463,397
public void loadProject(URL file) throws SoapUIException {<NEW_LINE>try {<NEW_LINE>UISupport.setHourglassCursor();<NEW_LINE>UrlWsdlLoader loader = new UrlWsdlLoader(file.toString(), this);<NEW_LINE>loader.setUseWorker(false);<NEW_LINE>InputStream inputStream = loader.load();<NEW_LINE>loadProjectFromInputStream(inputStr...
XmlError error = xe.getError();
1,627,890
public void updateDeployment(final String host, final Deployment deployment, final String token) throws HostNotFoundException, JobNotDeployedException, TokenVerificationException {<NEW_LINE>log.<MASK><NEW_LINE>final ZooKeeperClient client = provider.get("updateDeployment");<NEW_LINE>final JobId jobId = deployment.getJo...
info("updating deployment {}: {}", deployment, host);
291,736
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {<NEW_LINE>for (String beanName : getBeanNames(beanFactory, DataSource.class)) {<NEW_LINE>if (beanName.startsWith(SOFA_TRACER_DATASOURCE)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>BeanDefinition dataSource = getBeanDef...
dataSource, DataSourceUtils.getHikariJdbcUrlKey());
127,576
public DescribeAnomalyDetectorsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeAnomalyDetectorsResult describeAnomalyDetectorsResult = new DescribeAnomalyDetectorsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LI...
new ArrayList<AnomalyDetector>());
1,019,229
public static void down(GrayF32 input, GrayF32 output) {<NEW_LINE>int maxY = input.height - input.height % 2;<NEW_LINE>int maxX = input.width - input.width % 2;<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, maxY, 2, y -> {<NEW_LINE>for (int y = 0; y < maxY; y += 2) {<NEW_LINE>int indexOut = output.startIndex ...
= input.data[indexIn0++];
1,443,255
private void cancelMouseMove() {<NEW_LINE>mouseMoveCanceled = true;<NEW_LINE>// reset and remove everything related to the event handling<NEW_LINE>Event.releaseCapture(getElement());<NEW_LINE>setFocus(false);<NEW_LINE>if (moveRegistration != null) {<NEW_LINE>moveRegistration.removeHandler();<NEW_LINE>moveRegistration =...
= getElement().getStyle();
613,297
private ImportedIdSimple createImportedScalar(BeanPropertyAssoc<?> owner, TableJoinColumn col, BeanProperty[] props, BeanProperty[] others) {<NEW_LINE>String matchColumn = col.getForeignDbColumn();<NEW_LINE>String localColumn = col.getLocalDbColumn();<NEW_LINE>String localSqlFormula = col.getLocalSqlFormula();<NEW_LINE...
props.length, insertable, updateable);
1,286,225
public SortedMap<Integer, Map<String, String>> read(BufferedReader bRdr) throws IOException {<NEW_LINE>SortedMap<Integer, Map<String, String>> map = new TreeMap<>();<NEW_LINE>Map<String, String> fields = new HashMap<>();<NEW_LINE>String number = "";<NEW_LINE>Matcher m;<NEW_LINE>String line;<NEW_LINE>while ((line = bRdr...
throw new IOException("Error parsing " + line);
568,505
public void process(MessageTree tree) {<NEW_LINE>String domain = tree.getDomain();<NEW_LINE>MatrixReport report = m_reportManager.getHourlyReport(getStartTime(), domain, true);<NEW_LINE>Message message = tree.getMessage();<NEW_LINE>if (message instanceof Transaction) {<NEW_LINE>String messageType = message.getType();<N...
findOrCreateMatrix(message.getName());
35,165
/*<NEW_LINE>* Resolve the ID into a collection and check to see if its harvesting options are set. If so, return<NEW_LINE>* the collection, if not, bail out.<NEW_LINE>*/<NEW_LINE>private Collection resolveCollection(Context context, String collectionID) {<NEW_LINE>DSpaceObject dso;<NEW_LINE>Collection targetCollection ...
collectionID + ", " + "in context: " + context);
337,513
public <B extends BlockStateHolder<B>> void sendFakeBlock(BlockVector3 pos, B block) {<NEW_LINE>Location loc = new Location(player.getWorld(), pos.getX(), pos.getY(<MASK><NEW_LINE>if (block == null) {<NEW_LINE>player.sendBlockChange(loc, player.getWorld().getBlockAt(loc).getBlockData());<NEW_LINE>} else {<NEW_LINE>play...
), pos.getZ());
720,236
public BufferedImage filter(BufferedImage src, BufferedImage dst) {<NEW_LINE>final int width = src.getWidth();<NEW_LINE>final int height = src.getHeight();<NEW_LINE>final BufferedImage image;<NEW_LINE>if (dst == null) {<NEW_LINE>image = createCompatibleDestImage(src, null);<NEW_LINE>} else {<NEW_LINE>image = dst;<NEW_L...
= new int[width * height];
1,303,335
private synchronized void sendSessionAccept(final Set<Media> media, final SessionDescription offer, final List<PeerConnection.IceServer> iceServers) {<NEW_LINE>if (isTerminated()) {<NEW_LINE>Log.w(Config.LOGTAG, id.account.getJid().asBareJid() + ": ICE servers got discovered when session was already terminated. nothing...
).asBareJid() + ": unable to initialize WebRTC");
1,101,040
public CredentialModel createCredential(RealmModel realm, String userId, CredentialModel cred) {<NEW_LINE>createIndex(realm, userId);<NEW_LINE>FederatedUserCredentialEntity entity = new FederatedUserCredentialEntity();<NEW_LINE>String id = cred.getId() == null ? KeycloakModelUtils.generateId() : cred.getId();<NEW_LINE>...
setType(cred.getType());
995,407
public void run() {<NEW_LINE>peers_changed = false;<NEW_LINE>GlobalManager gm = CoreFactory.getSingleton().getGlobalManager();<NEW_LINE>swarm_peers = tv.getDataSources();<NEW_LINE>final Map<PEPeerManager, int[]> done_pms = new HashMap<>();<NEW_LINE>List<DownloadManager> dms = new ArrayList<>();<NEW_LINE>for (PEPeer pee...
PEPeerManager pm1 = o1.getPeerManager();
822,844
public static ItemStack create(Type type, OrientedContraptionEntity entity) {<NEW_LINE>ItemStack stack = ItemStack.EMPTY;<NEW_LINE>switch(type) {<NEW_LINE>case RIDEABLE:<NEW_LINE>stack = AllItems.MINECART_CONTRAPTION.asStack();<NEW_LINE>break;<NEW_LINE>case FURNACE:<NEW_LINE>stack = AllItems.FURNACE_MINECART_CONTRAPTIO...
).put("Contraption", tag);
1,768,628
private void checkNotClosed() throws SIConnectionUnavailableException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "checkNotClosed");<NEW_LINE>// Synchronize on the closed object to prevent it being changed while we check it.<NEW_LINE>synchronized (this) {<NEW_LIN...
exit(tc, "checkNotClosed", "Connection Closed exception");
1,145,450
private static void initAndCleanUp(Options options) {<NEW_LINE>boolean mustDisableShowTouchesOnCleanUp = false;<NEW_LINE>int restoreStayOn = -1;<NEW_LINE>if (options.getShowTouches() || options.getStayAwake()) {<NEW_LINE><MASK><NEW_LINE>if (options.getShowTouches()) {<NEW_LINE>try {<NEW_LINE>String oldValue = settings....
Settings settings = Device.getSettings();
823,294
private static void addRequires(FileObject moduleInfo, List<String> newModules) {<NEW_LINE>final JavaSource src = JavaSource.forFileObject(moduleInfo);<NEW_LINE>if (src == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Set<String> declaredModuleNames = getDeclaredModules(src);<NEW_LINE>Set<String> requiredModuleNames = n...
TreeMaker tm = copy.getTreeMaker();
1,170,634
private void createDebugTarget(Document script) {<NEW_LINE>Element target = script.createElement("target");<NEW_LINE>// NOI18N<NEW_LINE>target.setAttribute("name", DEBUG_TARGET);<NEW_LINE>// NOI18N<NEW_LINE>target.setAttribute("depends", INIT_TARGET);<NEW_LINE>// NOI18N<NEW_LINE>target.setAttribute("if", "netbeans.home...
sourcepath = script.createElement("sourcepath");
282,380
public void onSharedPreferenceChanged(SharedPreferences prefs, String key) {<NEW_LINE>// listener implementation<NEW_LINE>// Set new summary, when a preference value changes<NEW_LINE>if (key.equals("prefs_displaycategory")) {<NEW_LINE>mDisplayCategoryPreference.setSummary(mDisplayCategoryPreference.getEntry().toString(...
setSummary(mDeepPreference.getText());
1,786,074
public static void queryData(Dataset dataset) {<NEW_LINE>log.info("START");<NEW_LINE>long startTime = System.nanoTime();<NEW_LINE>String pre = StrUtils.strjoinNL("PREFIX : <http://example/>", "PREFIX text: <http://jena.apache.org/text#>", "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>");<NEW_LINE>String qs = Str...
QueryExecutionFactory.create(q, dataset);
1,382,662
private String random128BitHex() {<NEW_LINE>try {<NEW_LINE>MessageDigest md = MessageDigest.getInstance("SHA-256");<NEW_LINE>ByteBuffer b = ByteBuffer.allocate(52);<NEW_LINE>b.putInt(getUniqueId());<NEW_LINE>b.putInt(this.hashCode());<NEW_LINE>b.<MASK><NEW_LINE>b.putLong(System.nanoTime());<NEW_LINE>b.putLong(ServerTim...
putInt(md.hashCode());
779,581
public long findImageBase() {<NEW_LINE>// FIXME! This needs to be consistent with the getImageBase() method<NEW_LINE>// which currently considers prelink.<NEW_LINE>long minBase = -1;<NEW_LINE>int n = <MASK><NEW_LINE>for (int i = 0; i < n; ++i) {<NEW_LINE>long index = e_phoff + (i * e_phentsize);<NEW_LINE>if (!providerC...
Math.min(e_phnum, MAX_HEADERS_TO_CHECK_FOR_IMAGEBASE);
1,053,863
public String format(LoggingEvent event) {<NEW_LINE>Object obj = event.getMessage();<NEW_LINE>routingKey = null;<NEW_LINE>if (obj instanceof Map) {<NEW_LINE>Map map = (Map) event.getMessage();<NEW_LINE>DateTime now = new DateTime();<NEW_LINE>map.put("ts", now.getMillis());<NEW_LINE>map.put("datetime", fmt.print(now));<...
getLevel().toString());
1,686,421
public static DescribePerDateDataResponse unmarshall(DescribePerDateDataResponse describePerDateDataResponse, UnmarshallerContext context) {<NEW_LINE>describePerDateDataResponse.setRequestId(context.stringValue("DescribePerDateDataResponse.RequestId"));<NEW_LINE>List<DataViewItem> dataView = new ArrayList<DataViewItem>...
("DescribePerDateDataResponse.DataView[" + i + "].IsCheatFlow1d"));
1,475,244
public com.amazonaws.services.licensemanager.model.AccessDeniedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.licensemanager.model.AccessDeniedException accessDeniedException = new com.amazonaws.services.licensemanager.model.AccessDeniedException(null...
String currentParentElement = context.getCurrentParentElement();
1,514,276
final ListComponentsResult executeListComponents(ListComponentsRequest listComponentsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listComponentsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<ListCompone...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
728,848
public ListCoverageStatisticsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListCoverageStatisticsResult listCoverageStatisticsResult = new ListCoverageStatisticsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
int originalDepth = context.getCurrentDepth();
1,417,839
public static DescribeSagManagementPortResponse unmarshall(DescribeSagManagementPortResponse describeSagManagementPortResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSagManagementPortResponse.setRequestId(_ctx.stringValue("DescribeSagManagementPortResponse.RequestId"));<NEW_LINE>describeSagManagementPortResponse...
= new ArrayList<TaskState>();
1,240,549
//<NEW_LINE>Reference(//<NEW_LINE>title = "Fast and accurate computation of binomial probabilities", //<NEW_LINE>authors = "C. Loader", //<NEW_LINE>booktitle = "", url = "http://projects.scipy.org/scipy/raw-attachment/ticket/620/loader2000Fast.pdf", bibkey = "web/Loader00")<NEW_LINE>public static double pmf(double x, i...
* p) - n * q);
1,251,300
final DeleteRealtimeEndpointResult executeDeleteRealtimeEndpoint(DeleteRealtimeEndpointRequest deleteRealtimeEndpointRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteRealtimeEndpointRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
720,085
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>final String job;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Task task = emc.fetch(id, Task.class, ListTools.toList(Task.job_FIELDNAME));<NEW_LINE>if (null == ta...
result = new ActionResult<>();
1,281,630
public static HttpResult request(String url, List<String> headers, Map<String, String> paramValues, int connectTimeout, int readTimeout, String encoding, String method) {<NEW_LINE>HttpURLConnection conn = null;<NEW_LINE>try {<NEW_LINE>String encodedContent = encodingParams(paramValues, encoding);<NEW_LINE>url += (null ...
addRequestProperty("User-Agent", UtilsAndCommons.SERVER_VERSION);
9,307
public void publishApi(String designId, NewApiPublication info, String dereference) throws ServerError, NotFoundException {<NEW_LINE>LinkedAccountType type = info.getType();<NEW_LINE>try {<NEW_LINE>// First step - publish the content to the soruce control system<NEW_LINE>ISourceConnector connector = this.sourceConnecto...
info.getCommitMessage(), formattedContent);
13,932
public String renameSpace(@RequestParam String space, @RequestParam String newspace, HttpServletRequest req, HttpServletResponse res) {<NEW_LINE>Profile authUser = utils.getAuthUser(req);<NEW_LINE>Sysprop s = pc.read(utils.getSpaceId(space));<NEW_LINE>if (s != null && utils.isAdmin(authUser)) {<NEW_LINE>String origSpac...
false, CONF.maxItemsPerPage());
332,915
public boolean process(NacosTask task) {<NEW_LINE>int rowCount = persistService.configInfoTagCount();<NEW_LINE>int pageCount = (int) Math.<MASK><NEW_LINE>int actualRowCount = 0;<NEW_LINE>for (int pageNo = 1; pageNo <= pageCount; pageNo++) {<NEW_LINE>Page<ConfigInfoTagWrapper> page = persistService.findAllConfigInfoTagF...
ceil(rowCount * 1.0 / PAGE_SIZE);
1,204,713
public static com.liferay.portal.model.Company model(CompanyHBM companyHBM) {<NEW_LINE>com.liferay.portal.model.Company company = CompanyPool.get(companyHBM.getPrimaryKey());<NEW_LINE>if (company == null) {<NEW_LINE>company = new com.liferay.portal.model.Company(companyHBM.getCompanyId(), companyHBM.getKey(), companyHB...
), companyHBM.getStrangers());
615,446
public DeleteAnalysisResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteAnalysisResult deleteAnalysisResult = new DeleteAnalysisResult();<NEW_LINE>deleteAnalysisResult.setStatus(context.<MASK><NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement ...
getHttpResponse().getStatusCode());
872,980
final ProvisionIpamPoolCidrResult executeProvisionIpamPoolCidr(ProvisionIpamPoolCidrRequest provisionIpamPoolCidrRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(provisionIpamPoolCidrRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
(super.beforeMarshalling(provisionIpamPoolCidrRequest));
1,779,123
public String originalDigits(String s) {<NEW_LINE>int[] counter = new int[26];<NEW_LINE>for (char c : s.toCharArray()) {<NEW_LINE>++counter[c - 'a'];<NEW_LINE>}<NEW_LINE>int[] cnt = new int[10];<NEW_LINE>cnt[0] = counter['z' - 'a'];<NEW_LINE>cnt[2] = counter['w' - 'a'];<NEW_LINE>cnt[4] = counter['u' - 'a'];<NEW_LINE>cn...
- 'a'] - cnt[8];
939,694
private PainelCor criarPainelCor(String name, String tema, JSONObject json) {<NEW_LINE>JLabel nomeVariavel = new JLabel("<html><body width='100px'><div>" + name.replace("_", " ") + "</div></body></html>");<NEW_LINE>nomeVariavel.setForeground(ColorController.COR_LETRA);<NEW_LINE>WebButton botaoColorPicker = new WebButto...
= new PainelCor(cor, name);
1,115,790
protected DefaultActionGroup collectToolbarActions(@javax.annotation.Nullable List<AnAction> viewerActions) {<NEW_LINE>DefaultActionGroup group = new DefaultActionGroup();<NEW_LINE>List<AnAction> navigationActions = new ArrayList<AnAction>();<NEW_LINE>navigationActions.addAll(getNavigationActions());<NEW_LINE>navigatio...
.getAction(IdeActions.ACTION_CONTEXT_HELP));
1,078,350
private static void addMatchingFiles(VirtualFile searchRoot, @NotNull String includeText, @NotNull List<VirtualFile> result) {<NEW_LINE>String[] split = includeText.split("/");<NEW_LINE>if (split.length == 0)<NEW_LINE>return;<NEW_LINE>int joinEndIndex = includeText.endsWith("/") ? split.length : split.length - 1;<NEW_L...
? directory.getChildren() : null;
1,418,557
public static void main(String[] args) {<NEW_LINE>java.util.List<PathLabel> <MASK><NEW_LINE>examples.add(new PathLabel("Horses", UtilIO.pathExample("segment/berkeley_horses.jpg")));<NEW_LINE>examples.add(new PathLabel("Human Statue", UtilIO.pathExample("standard/kodim17.jpg")));<NEW_LINE>examples.add(new PathLabel("sun...
examples = new ArrayList<>();
129,937
public static Tensor asTensor(String text, Embedder embedder, Embedder.Context context, TensorType type) {<NEW_LINE>if (type.dimensions().size() == 1 && type.dimensions().get(0).isIndexed()) {<NEW_LINE>// Build to a list first since we can't reverse a tensor builder<NEW_LINE>List<Integer> values = embedder.embed(text, ...
throw new IllegalArgumentException("Don't know how to embed into " + type);
199,778
public void unpack(File zipFile, File targetDir, TransformOutputs outputs, boolean asFiletreeOutput) throws IOException {<NEW_LINE>Logging.getLogger(UnzipTransform.class).info("Unpacking " + zipFile.getName() + " using " + UnzipTransform.class.getSimpleName() + ".");<NEW_LINE>Function<String, Path> pathModifier = pathR...
> entries = zip.getEntries();
1,203,141
public void onReceive(Context context, Intent intent) {<NEW_LINE>if (intent != null) {<NEW_LINE>int state = intent.getIntExtra(AudioService.AudioUpdateIntent.STATUS, -1);<NEW_LINE>int repeatCount = intent.getIntExtra(AudioService<MASK><NEW_LINE>AudioRequest request = intent.getParcelableExtra(AudioService.AudioUpdateIn...
.AudioUpdateIntent.REPEAT_COUNT, -200);
1,443,328
public ProcessStatus processCheckPasswordAction(final PwmRequest pwmRequest) throws IOException, PwmUnrecoverableException, ChaiUnavailableException {<NEW_LINE>final RestCheckPasswordServer.JsonInput jsonInput = JsonFactory.get().deserialize(pwmRequest.readRequestBodyAsString(), RestCheckPasswordServer.JsonInput.class)...
, getHelpdeskProfile(pwmRequest), userIdentity);
1,646,707
public void updateTile() {<NEW_LINE>super.updateTile();<NEW_LINE>if (bulletLife > 0 && bullet != null) {<NEW_LINE>wasShooting = true;<NEW_LINE>tr.trns(rotation, shootLength, 0f);<NEW_LINE>bullet.rotation(rotation);<NEW_LINE>bullet.set(x + tr.x, y + tr.y);<NEW_LINE>bullet.time(0f);<NEW_LINE>heat = 1f;<NEW_LINE>recoil = ...
-= used * liquid.heatCapacity * coolantMultiplier;
1,579,728
public void prepareForMigration(VirtualMachineProfile vm, DeployDestination dest) {<NEW_LINE>List<VolumeVO> vols = _volsDao.findUsableVolumesForInstance(vm.getId());<NEW_LINE>if (s_logger.isDebugEnabled()) {<NEW_LINE>s_logger.debug("Preparing " + vols.<MASK><NEW_LINE>}<NEW_LINE>for (VolumeVO vol : vols) {<NEW_LINE>Volu...
size() + " volumes for " + vm);
285,407
public static JavaPlatform[] findSupportedPlatforms(@NonNull final GlassfishInstance instance) {<NEW_LINE>// Avoid NPEs and troll developer a bit.<NEW_LINE>Parameters.notNull("instance", instance);<NEW_LINE>// Search for supported Java SE platforms.<NEW_LINE>List<JavaPlatform> platformsList = new LinkedList<JavaPlatfor...
getJavaSEConfig(instance.getVersion());
983,664
public static DescribeRegionsResponse unmarshall(DescribeRegionsResponse describeRegionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRegionsResponse.setRequestId(_ctx.stringValue("DescribeRegionsResponse.RequestId"));<NEW_LINE>describeRegionsResponse.setMessage(_ctx.stringValue("DescribeRegionsResponse.Messag...
+ "].RecommendZones[" + j + "]"));
827,277
protected TlsCredentials selectClientCredentials13(Principal[] issuers, byte[] certificateRequestContext) throws IOException {<NEW_LINE>LinkedHashMap<String, SignatureSchemeInfo> keyTypeMap = new LinkedHashMap<String, SignatureSchemeInfo>();<NEW_LINE>for (SignatureSchemeInfo signatureSchemeInfo : jsseSecurityParameters...
).toArray(TlsUtils.EMPTY_STRINGS);
612,046
protected JsonObject createHeader() {<NEW_LINE>com.google.gson.JsonObject jsonheader = new JsonObject();<NEW_LINE><MASK><NEW_LINE>List<String> critList = header.getCritical();<NEW_LINE>if (critList != null) {<NEW_LINE>JsonArray list = handleList(critList);<NEW_LINE>jsonheader.add("crit", list);<NEW_LINE>}<NEW_LINE>Set<...
jsonheader.addProperty(ALGORITHM_HEADER, "none");
646,692
private static void blockHitAir(ServerWorld serverWorld, RayTraceResult rayTraceResult, ElementalAir airInterfaceInstance) {<NEW_LINE>int arrowAirChargeLevel = airInterfaceInstance.getChargeLevel();<NEW_LINE>if (arrowAirChargeLevel == 0)<NEW_LINE>return;<NEW_LINE>if (!(rayTraceResult instanceof BlockRayTraceResult))<NE...
OFFSET_VARIATION.getZ(), SPEED);
1,270,074
// NOTE: the type of each field of a source type is resolved when needed<NEW_LINE>@Override<NEW_LINE>public FieldBinding[] fields() {<NEW_LINE>if (!isPrototype()) {<NEW_LINE>if ((this.tagBits & TagBits.AreFieldsComplete) != 0)<NEW_LINE>return this.fields;<NEW_LINE>this.tagBits |= TagBits.AreFieldsComplete;<NEW_LINE>ret...
this.fields, 0, length);
1,573,838
private void installClassLiterals(List<JDeclaredType> classLiteralTypesToInstall) {<NEW_LINE>if (!closureCompilerFormatEnabled) {<NEW_LINE>// let createForClass() install them until a follow on CL<NEW_LINE>// TODO(cromwellian) remove after approval from rluble in follow up CL<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (J...
protoRef = getPrototypeQualifierOf(type, sourceInfo);
1,771,891
public TimePolicyRepresentation toRepresentation(Policy policy, AuthorizationProvider authorization) {<NEW_LINE>TimePolicyRepresentation representation = new TimePolicyRepresentation();<NEW_LINE>Map<String, String> config = policy.getConfig();<NEW_LINE>representation.setDayMonth(config.get("dayMonth"));<NEW_LINE>repres...
(config.get("hour"));
505,068
private ContentletRelationships retrieveRelationshipsData(Contentlet currentcontent, User user, ActionRequest req) {<NEW_LINE>Set<String> keys = req.getParameterMap().keySet();<NEW_LINE>ContentletRelationships relationshipsData = new ContentletRelationships(currentcontent);<NEW_LINE>List<ContentletRelationshipRecords> ...
= new ArrayList<Contentlet>();
1,764,397
public void contributeParameters(Map<String, Object> parameters) throws JRException {<NEW_LINE>DataSourceDataAdapter dsDataAdapter = getDataSourceDataAdapter();<NEW_LINE>if (dsDataAdapter != null) {<NEW_LINE>JRDataSource ds = null;<NEW_LINE>ClassLoader oldThreadClassLoader = Thread.currentThread().getContextClassLoader...
, dsDataAdapter.getFactoryClass() });
1,306,701
public void parse(ReadableByteChannel dataSource, ByteBuffer header, long contentSize, BoxParser boxParser) throws IOException {<NEW_LINE>ByteBuffer content = ByteBuffer.allocate(CastUtils.l2i(contentSize));<NEW_LINE>dataSource.read(content);<NEW_LINE>((Buffer) content).position(6);<NEW_LINE>dataReferenceIndex = IsoTyp...
backgroundB = IsoTypeReader.readUInt16(content);
1,092,104
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see com.fasterxml.jackson.databind.JsonDeserializer#deserialize(com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.DeserializationContext)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>@SuppressWarnings("null")<NEW_LINE>public RepresentationModel<?> deserialize(JsonP...
).add(links) : result;