idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
262,567
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {<NEW_LINE>DialogAboutBinding binding = DialogAboutBinding.inflate(LayoutInflater.from(requireActivity<MASK><NEW_LINE>binding.designAboutTitle.setText(R.string.app_name);<NEW_LINE>binding.designAboutInfo.setMovementMethod(LinkMovementMethod.getInstance()...
()), null, false);
982,959
public static Entry[] parseHeaderEntries(CharSeeker dataSeeker, Configuration config, IdType idType, Groups groups, Supplier<ZoneId> defaultTimeZone, HeaderEntryFactory entryFactory, Header.Monitor monitor) {<NEW_LINE>try {<NEW_LINE>Mark mark = new Mark();<NEW_LINE>Extractors extractors = new Extractors(config.arrayDel...
toArray(new Entry[0]);
1,399,916
public ThingGroupIndexingConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ThingGroupIndexingConfiguration thingGroupIndexingConfig...
)).unmarshall(context));
434,342
public static UpdateExperimentStatusResponse unmarshall(UpdateExperimentStatusResponse updateExperimentStatusResponse, UnmarshallerContext _ctx) {<NEW_LINE>updateExperimentStatusResponse.setRequestId(_ctx.stringValue("UpdateExperimentStatusResponse.requestId"));<NEW_LINE>Result result = new Result();<NEW_LINE>result.se...
(_ctx.stringValue("UpdateExperimentStatusResponse.result.onlineTime"));
812,406
public void initializePlugin(StagemonitorPlugin.InitArguments initArguments) throws Exception {<NEW_LINE>final CorePlugin corePlugin = initArguments.getPlugin(CorePlugin.class);<NEW_LINE>corePlugin.getGrafanaClient().sendGrafanaDashboardAsync("grafana/ElasticsearchHostDashboard.json");<NEW_LINE>if (sigar == null) {<NEW...
getKey(), sigar)));
330,051
public Configuration update(String configId, Configuration newConfiguration, boolean override) throws IOException {<NEW_LINE>org.osgi.service.cm.Configuration configuration = null;<NEW_LINE>if (newConfiguration.containsKey(ConfigConstants.SERVICE_CONTEXT)) {<NEW_LINE>try {<NEW_LINE>configuration = getConfigurationWithC...
> keySet = oldConfiguration.keySet();
1,231,781
public void read(JmeImporter im) throws IOException {<NEW_LINE>super.read(im);<NEW_LINE>InputCapsule ic = im.getCapsule(this);<NEW_LINE>// if (im.getFormatVersion() == 0) {<NEW_LINE>modelName = ic.readString("modelName", "");<NEW_LINE>// }<NEW_LINE>// FIXME always the same issue, because of the cloning of assets, this ...
ic.readString("animationName", "");
11,817
private void expectPopupClosed0(int timeout, Runnable onClosed) {<NEW_LINE>StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();<NEW_LINE>AbstractGuiPopup popup = getPopup(mc.currentScreen);<NEW_LINE>if (popup == null) {<NEW_LINE>throw new IllegalStateException("No popup found.");<NEW_LINE>}<NEW_LINE...
, 3, stackTrace.length));
457,528
final RemoveRegionResult executeRemoveRegion(RemoveRegionRequest removeRegionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(removeRegionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
endClientExecution(awsRequestMetrics, request, response);
102,728
private void loadConfigFile() throws IngestModuleException {<NEW_LINE>Document xmlinput;<NEW_LINE>try {<NEW_LINE>String path = PlatformUtil.getUserConfigDirectory() + File.separator + XMLFILE;<NEW_LINE>File f = new File(path);<NEW_LINE>// NON-NLS<NEW_LINE>logger.log(Level.INFO, "Load successful");<NEW_LINE>DocumentBuil...
item(i).getAttributes();
1,173,867
private RelNode createModify(RelOptTable targetTable, RelNode source, LogicalTableModify.Operation op, int batchSize, Set<Integer> appendedColumnIndex, SqlNodeList hints) {<NEW_LINE>final ModifiableTable modifiableTable = targetTable.unwrap(ModifiableTable.class);<NEW_LINE>if (modifiableTable != null && modifiableTable...
.singleSource(targetTable, source));
1,039,721
final DescribeFolderContentsResult executeDescribeFolderContents(DescribeFolderContentsRequest describeFolderContentsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeFolderContentsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
(super.beforeMarshalling(describeFolderContentsRequest));
849,522
public com.amazonaws.services.dataexchange.model.ValidationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.dataexchange.model.ValidationException validationException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.getCurrentDep...
dataexchange.model.ValidationException(null);
1,452,030
private void validateCompactedEndpoint(ApplicationPackage applicationPackage) {<NEW_LINE>Map<List<String>, InstanceEndpoint> instanceEndpoints = new HashMap<>();<NEW_LINE>for (var instanceSpec : applicationPackage.deploymentSpec().instances()) {<NEW_LINE>for (var endpoint : instanceSpec.endpoints()) {<NEW_LINE>List<Str...
), endpoint.endpointId());
36,711
public View onCreateDemoView(LayoutInflater layoutInflater, @Nullable ViewGroup viewGroup, @Nullable Bundle bundle) {<NEW_LINE>View view = layoutInflater.inflate(R.layout.cat_navigation_rail_fragment, viewGroup, false);<NEW_LINE><MASK><NEW_LINE>initNavigationRailDemoControls(view);<NEW_LINE>OnItemSelectedListener navig...
initNavigationRail(getContext(), view);
708,828
public Result invoke(final Invoker<?> invoker, final Invocation invocation) throws RpcException {<NEW_LINE>final HmilyTransactionContext context = HmilyContextHolder.get();<NEW_LINE>if (Objects.isNull(context)) {<NEW_LINE>return invoker.invoke(invocation);<NEW_LINE>}<NEW_LINE>Class<?> clazz = invoker.getInterface();<NE...
clazz.getMethod(methodName, args);
1,768,088
private static void putBuildXMLSourceFile(AntProjectHelper helper, String antPath) {<NEW_LINE>Element data = Util.getPrimaryConfigurationData(helper);<NEW_LINE>Document doc = data.getOwnerDocument();<NEW_LINE>// NOI18N<NEW_LINE>Element viewEl = XMLUtil.findElement(data, "view", FreeformProjectType.NS_GENERAL);<NEW_LINE...
appendChildElement(viewEl, itemsEl, viewElementsOrder);
1,672,222
public XmlElement serialize(Object object) {<NEW_LINE>XmlElement struct = new XmlElement(SerializerHandler.TYPE_STRUCT);<NEW_LINE>try {<NEW_LINE>XmlElement entry, name, value;<NEW_LINE>// We can safely cast here, this Serializer should only be called when<NEW_LINE>// the parameter is a map.<NEW_LINE>@SuppressWarnings("...
Map<String, Object>) object;
1,622,852
public static void main(String[] args) {<NEW_LINE>// load logging configuration<NEW_LINE>LogConfig.configureRuntime();<NEW_LINE>Config config = buildConfig();<NEW_LINE>Security security = Security.create(config.get("security"));<NEW_LINE>// this is needed for proper encryption/decryption of cookies<NEW_LINE>Contexts.gl...
.TEXT_PLAIN.withCharset("UTF-8"));
386,061
private void registerAuthorizer(CatalogApplicationConfig catalogConfig, Environment environment, Jdbi jdbi) throws NoSuchMethodException, ClassNotFoundException, IllegalAccessException, InvocationTargetException, InstantiationException, IOException {<NEW_LINE><MASK><NEW_LINE>AuthenticationConfiguration authenticationCo...
AuthorizerConfiguration authorizerConf = catalogConfig.getAuthorizerConfiguration();
956,127
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {<NEW_LINE>CommonLayoutParams.adjustChildrenLayoutParams(this, widthMeasureSpec, heightMeasureSpec);<NEW_LINE>// Don't call measure because it will measure content twice.<NEW_LINE>// ScrollView is expected to have single child so we measure only the ...
contentMeasuredWidth, this.getSuggestedMinimumWidth());
1,820,753
private void restLangText() {<NEW_LINE>UNITSERVER = ParallelMessage.get().getMessage("UnitServerConsole.UnitServer");<NEW_LINE>ODBCSERVER = ParallelMessage.get().getMessage("UnitServerConsole.OdbcServer");<NEW_LINE>HTTPSERVER = ParallelMessage.get().getMessage("UnitServerConsole.HttpServer");<NEW_LINE>tabServer.setTitl...
().getMessage("UnitServerConsole.status"));
1,164,049
public void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {<NEW_LINE>if (in.readableBytes() < 8) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ByteBuf copy = in.slice();<NEW_LINE>int index = copy.readUnsignedByte();<NEW_LINE><MASK><NEW_LINE>// decompress() starts reading here<NEW_LINE>int co...
int file = copy.readUnsignedShort();
695,292
Class<?> lookup(final PluginType pluginType) throws PluginSourceNotMatchException {<NEW_LINE>synchronized (this.cacheMap) {<NEW_LINE>// Synchronize between this.cacheMap.get() and this.cacheMap.put().<NEW_LINE>final Class<?> pluginMainClass = <MASK><NEW_LINE>if (pluginMainClass != null) {<NEW_LINE>return pluginMainClas...
this.cacheMap.get(pluginType);
189,435
private Mono<PagedResponse<DiskEncryptionSetInner>> listSinglePageAsync() {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() ...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
727,611
private form createPageFind(HttpServletRequest request, HttpServletResponse response, WWindowStatus ws) throws ServletException, IOException {<NEW_LINE>boolean hasValue = false;<NEW_LINE>boolean hasName = false;<NEW_LINE>boolean hasDocNo = false;<NEW_LINE>boolean hasDescription = false;<NEW_LINE>if (ws.curTab == null)<...
= new a("javascript:void(1);", "Search");
971,463
protected void processMouseMotionEvent(MouseEvent e) {<NEW_LINE>super.processMouseMotionEvent(e);<NEW_LINE>if (!isShowing())<NEW_LINE>return;<NEW_LINE>if (MouseEvent.MOUSE_DRAGGED == e.getID() && myWasPressedOnMe) {<NEW_LINE>myDragging = true;<NEW_LINE>setCursor(getResizeCursor());<NEW_LINE>if (myGlassPane != null) {<N...
setCursor(getResizeCursor(), myListener);
785,116
public final void objectConstructionExpr() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST objectConstructionExpr_AST = null;<NEW_LINE>{<NEW_LINE>switch(LA(1)) {<NEW_LINE>case DOTDOT:<NEW_LINE>{<NEW_LINE>AST tmp47_AST = null;<NEW_L...
.create(LT(1));
1,424,097
private void childUnlock(final MenuItem item) {<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(this, R.style.CustomAlertDialogTheme);<NEW_LINE>builder.setTitle(R.string.action_mode_child_lock);<NEW_LINE>builder.setMessage(R.string.action_mode_dialog_message_unlock);<NEW_LINE>builder.setIcon(R.drawable.i...
layout.edit_text_for_dialog, null, false);
303,151
static void vp8_get_inter_mbpred_error(Macroblock mb, VarianceFNs vfp, VarianceResults ret, MV this_mv) {<NEW_LINE>final Block b = mb.block.get();<NEW_LINE>final BlockD d = mb.e_mbd.block.get();<NEW_LINE>final FullAccessIntArrPointer what = b.getSrcPtr();<NEW_LINE>final int what_stride = b.src_stride;<NEW_LINE>final in...
int yoffset = this_mv.row & 7;
1,750,755
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1,c2".split(",");<NEW_LINE>String epl = "@Name('s0') select a[0].theString as c0, a[1].theString as c1, b.theString as c2 from pattern [a=SupportBean(intPrimitive=0) until b=SupportBean(intPrimitive=1)]";<NEW_LINE>env.compileDeploy(epl).addLis...
sendSupportBean(env, "A2", 0);
1,843,754
// @SuppressForbidden(reason = "toUpperCase() for consistency level")<NEW_LINE>@Override<NEW_LINE>public void createField(ParseContext context, Object object, Optional<String> keyName) throws IOException {<NEW_LINE>InetAddress address = null;<NEW_LINE>if (object instanceof String) {<NEW_LINE>try {<NEW_LINE>address = In...
doc().getFields());
597,183
void newPolyglotEngineInstance(ObjectReference engine, JPDAThreadImpl thread) {<NEW_LINE>LOG.log(Level.FINE, "Engine created breakpoint hit: engine = {0} in thread = {1}", new Object[] { engine, thread.getThreadReference() });<NEW_LINE>assert inited.get() : "The remote services should have been initialized already from...
concreteMethodByName(accessorClass, ACCESSOR_SET_UP_DEBUG_MANAGER_FOR, ACCESSOR_SET_UP_DEBUG_MANAGER_FOR_SGN);
82,960
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>Context mContext = getActivity();<NEW_LINE>HashMap<String, String> fonts = FontManager.getFontsMap();<NEW_LINE>mFontPaths = new ArrayList<>();<NEW_LINE>mFontNames = new ArrayList<>();<NEW_LINE>for (String path : fonts.keySet()) {<NEW_LINE>mFontPaths.add...
setText(R.string.select_a_font);
35,775
protected org.glassfish.grizzly.http.HttpServerFilter createHttpServerCodecFilter(final Http http, final boolean isChunkedEnabled, final int headerBufferLengthBytes, final String defaultResponseType, final KeepAlive keepAlive, final DelayedExecutor delayedExecutor, final int maxRequestHeaders, final int maxResponseHead...
(http.getAllowPayloadForUndefinedHttpMethods()));
1,377,379
public void testXA012(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>final TransactionManager tm = TransactionManagerFactory.getTransactionManager();<NEW_LINE>tm.begin();<NEW_LINE>final <MASK><NEW_LINE>tx.enlistResource(new XAResourceImpl().setPrepareAction(XAException.XA_RBROLLBA...
Transaction tx = tm.getTransaction();
919,570
public static GetDhcpOptionsSetResponse unmarshall(GetDhcpOptionsSetResponse getDhcpOptionsSetResponse, UnmarshallerContext _ctx) {<NEW_LINE>getDhcpOptionsSetResponse.setRequestId(_ctx.stringValue("GetDhcpOptionsSetResponse.RequestId"));<NEW_LINE>getDhcpOptionsSetResponse.setDhcpOptionsSetDescription(_ctx.stringValue("...
("GetDhcpOptionsSetResponse.AssociateVpcs[" + i + "].VpcId"));
336,515
private I_C_Invoice_Candidate createCand(final Properties ctx, final I_C_Flatrate_Term term, final I_C_Flatrate_DataEntry dataEntry, final int productId, final BigDecimal priceActual, final String trxName) {<NEW_LINE>final I_C_Invoice_Candidate newCand = InterfaceWrapperHelper.create(<MASK><NEW_LINE>Check.assume(newCan...
ctx, I_C_Invoice_Candidate.class, trxName);
1,346,945
private File createJoinFile(final String hashId, final Connection connection) throws IOException, DotDataException {<NEW_LINE>final File file = FileUtil.createTemporaryFile("dot-db-storage-recovery", ".tmp", true);<NEW_LINE>try (final FileJoiner fileJoiner = new FileJoiner(file)) {<NEW_LINE>final HashBuilder fileHashBu...
bytes = resultSet.getBytes("data");
1,516,091
public static JSConstructor createErrorConstructor(JSRealm realm, JSErrorType errorType) {<NEW_LINE>JSContext context = realm.getContext();<NEW_LINE>TruffleString name = Strings.fromJavaString(errorType.toString());<NEW_LINE>// (Type)Error<NEW_LINE>JSFunctionObject errorConstructor = realm.lookupFunction(ConstructorBui...
JSError.createErrorPrototype(realm, errorType);
1,367,313
// GEN-LAST:event_bnTestDatabaseActionPerformed<NEW_LINE>private void bnTestMessageServiceActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_bnTestMessageServiceActionPerformed<NEW_LINE>lbTestMessageService.setIcon(null);<NEW_LINE>lbTestMessageService.paintImmediately(lbTestMessageService.get...
.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
571,655
public boolean testMatch(final PwmDomain pwmDomain, final SessionLabel sessionLabel, final UserIdentity userIdentity, final UserPermission userPermission) throws PwmUnrecoverableException {<NEW_LINE>if (userPermission.getLdapBase() != null && !userPermission.getLdapBase().trim().isEmpty()) {<NEW_LINE>final String canon...
String filterString = userPermission.getLdapQuery();
1,662,147
public int updateRows(Set<LinkedHashMap<String, String>> affectPks, LinkedHashMap<String, String> values) throws SQLException {<NEW_LINE>checkRule(values);<NEW_LINE>// temp<NEW_LINE>List<LinkedHashMap<String, String>> dbGroupRows = Lists.newArrayList();<NEW_LINE>for (LinkedHashMap<String, String> affectPk : affectPks) ...
msg, "42S22", ErrorCode.ER_NO_REFERENCED_ROW_2);
42,736
private // SQLERRMSG_s; PROTOCOL TYPE VCS; ENVLID 0x32; Length Override 70<NEW_LINE>void parseSQLCAXGRP(NetSqlca netSqlca) {<NEW_LINE>if (readFastUnsignedByte() == CodePoint.NULLDATA) {<NEW_LINE>netSqlca.setContainsSqlcax(false);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// if (DRDAConstants.TARGET_SQL_AM < DRDAConstants.MG...
= Typdef.targetTypdef.getCcsidMbc();
1,588,860
public static void compact(List<TsFileResource> seqFileResources, List<TsFileResource> unseqFileResources, List<TsFileResource> targetFileResources) throws IOException, MetadataException, StorageEngineException, InterruptedException {<NEW_LINE>long queryId = QueryResourceManager.getInstance().assignCompactionQueryId();...
deviceIterator, compactionWriter, queryContext, queryDataSource);
1,126,319
private Variable createVar(Function func, int frameOffset, int offset, int refSize) throws InvalidInputException {<NEW_LINE>if (dontCreateNewVariables) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>StackFrame frame = func.getStackFrame();<NEW_LINE>int frameLoc = offset + frameOffset;<NEW_LINE>Variable var = frame.getVari...
(refSize), SourceType.ANALYSIS);
796,520
public final <T> List<T> retrieveAssociatedRecords(@NonNull final Object model, @NonNull final Class<? extends IReferenceNoGenerator> generatorClazz, @NonNull final Class<T> clazz) {<NEW_LINE>final Properties ctx = getCtx(model);<NEW_LINE>final String trxName = getTrxName(model);<NEW_LINE>final I_C_ReferenceNo_Type typ...
getRecord_ID(), clazz, trxName);
294,170
private Collection<?> fromBytesLike(Frame frame, PConstructAndRaiseNode constructAndRaiseNode, ToByteArrayNode toBytes, Object cadata) throws KeyStoreException, IOException, NoSuchAlgorithmException {<NEW_LINE>byte[] bytes = toBytes.execute(((PBytesLike) cadata).getSequenceStorage());<NEW_LINE>try {<NEW_LINE>return Cer...
frame, SSLErrorCode.ERROR_SSL, msg);
1,360,341
public Put toStore(Property<?> prop) {<NEW_LINE>Put put = new Put(Bytes.toBytes<MASK><NEW_LINE>// uid<NEW_LINE>byte[] propName = Bytes.toBytes(prop.getName());<NEW_LINE>put.addColumn(B_FEATURES_CF_PROPERTIES, B_COL_PROPERTY_ID, propName);<NEW_LINE>// type<NEW_LINE>byte[] mytype = (prop.getType() == null) ? null : Bytes...
(prop.getName()));
1,119,171
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>ArrayList<String> availableLanguages = new ArrayList<String>();<NEW_LINE>ArrayList<String> unavailableLanguages = new ArrayList<String>();<NEW_LINE>boolean haveBaseResources = hasBaseResources(this);<NEW_LINE>if (...
Locale.ENGLISH.toString());
36,711
public View onCreateDemoView(LayoutInflater layoutInflater, @Nullable ViewGroup viewGroup, @Nullable Bundle bundle) {<NEW_LINE>View view = layoutInflater.inflate(R.layout.cat_navigation_rail_fragment, viewGroup, false);<NEW_LINE>initNavigationRail(getContext(), view);<NEW_LINE>initNavigationRailDemoControls(view);<NEW_...
findViewById(R.id.page_2);
1,494,554
public static DorisSink buildDorisSink(String table) {<NEW_LINE>DorisSink.Builder<String> builder = DorisSink.builder();<NEW_LINE>DorisOptions.Builder dorisBuilder = DorisOptions.builder();<NEW_LINE>dorisBuilder.setFenodes(HOST + ":" + DORIS_PORT).setTableIdentifier(TARGET_DORIS_DB + "." + table).setUsername("root").se...
setStreamLoadProp(pro).build();
1,554,879
private void apply() {<NEW_LINE>this._trace = getBoolean("_trace", false);<NEW_LINE>this.net_collector_ip_port_id_pws = getValue("net_collector_ip_port_id_pws", "127.0.0.1:6100:admin:admin");<NEW_LINE>this.net_webapp_tcp_client_pool_size = getInt("net_webapp_tcp_client_pool_size", 100);<NEW_LINE>this.net_webapp_tcp_cli...
collect(Collectors.toSet());
1,325,433
final UpdateMissionProfileResult executeUpdateMissionProfile(UpdateMissionProfileRequest updateMissionProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateMissionProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
endClientExecution(awsRequestMetrics, request, response);
376,633
protected void paintContent(@NotNull final Graphics2D g2d, @NotNull final C c, @NotNull final D d, @NotNull final Rectangle bounds) {<NEW_LINE>// Ensure that text painting is allowed<NEW_LINE>if (!isEmpty(c, d)) {<NEW_LINE>// Applying graphics settings<NEW_LINE>final Font oldFont = GraphicsUtils.setupFont(g2d, getFont(...
GraphicsUtils.restorePaint(g2d, op);
916,026
public void onPostExecute(Throwable p1) {<NEW_LINE>mActivity.mPlayButton.setText("Play");<NEW_LINE>mActivity.mPlayButton.setEnabled(true);<NEW_LINE>mActivity.mLaunchProgress.setMax(100);<NEW_LINE>mActivity.mLaunchProgress.setProgress(0);<NEW_LINE>mActivity.statusIsLaunching(false);<NEW_LINE>if (p1 != null && !(p1 insta...
mainIntent.addFlags(Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
1,515,323
private static Unbinder parseBindColor(Object target, Field field, View source) {<NEW_LINE>BindColor bindColor = field.getAnnotation(BindColor.class);<NEW_LINE>if (bindColor == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>validateMember(field);<NEW_LINE>int id = bindColor.value();<NEW_LINE>Context context = source...
field.getName() + ')');
1,011,334
public RowMap deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException {<NEW_LINE>ObjectNode node = jsonParser.getCodec().readTree(jsonParser);<NEW_LINE>JsonNode encrypted = node.get("encrypted");<NEW_LINE>if (encrypted != null) {<NEW_LINE>String iv = encrypted.get("iv").text...
readDataInto(rowMap, data, false);
109,482
public void writeBinMultiDataPoint(MetricData metricData) throws MetricProxyException {<NEW_LINE>MetricsAggregator aggregator = MapUtils.getOrCreate(aggregators, metricData.getMetricType(), new ObjectFactory<MetricsAggregator>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public MetricsAggregator create() {<NEW_LINE>return...
> metricDataTags = metricData.getTags();
1,310,767
public static double areaTermBoth(double x0, double y0, double x1, double y1) {<NEW_LINE>double dx = x1 - x0;<NEW_LINE>double dy = y1 - y0;<NEW_LINE>double len = Math.sqrt(dx * dx + dy * dy);<NEW_LINE>double u0x = dx / len;<NEW_LINE>double u0y = dy / len;<NEW_LINE>// normal vector pointing to R of unit<NEW_LINE>double ...
x1 * n1x + y1 * n1y);
199,902
public void dataWritten(long offset, long length, Object originator) {<NEW_LINE>if (TRACE) {<NEW_LINE>System.out.println("data written:" + offset + "/" + length);<NEW_LINE>}<NEW_LINE>dataEntry entry = new dataEntry(offset, length);<NEW_LINE>synchronized (data_written) {<NEW_LINE>data_written.add(entry);<NEW_LINE>compac...
long prev_length = prev_e.getLength();
1,711,936
public Node leaveVarNode(VarNode varNode) {<NEW_LINE>Expression init = varNode.getInit();<NEW_LINE>// assignment is right associative, so we end up visiting the value before the name. We have to invert the<NEW_LINE>// children<NEW_LINE>if (!isDefaultNamedFunctionExport(varNode) && !varNode.isFunctionDeclaration() && !(...
[] { name, value });
1,779,763
protected List<IntervalsSource> analyzeGraph(TokenStream source) throws IOException {<NEW_LINE>source.reset();<NEW_LINE>GraphTokenStreamFiniteStrings graph = new GraphTokenStreamFiniteStrings(source);<NEW_LINE>List<IntervalsSource> clauses = new ArrayList<>();<NEW_LINE>int[] articulationPoints = graph.articulationPoint...
.addAll(analyzeTerms(ts));
744,663
public OUser authenticate(ODatabaseSession session, final String username, final String password) {<NEW_LINE>if (delegate == null)<NEW_LINE>throw new OSecurityAccessException("OSymmetricKeySecurity.authenticate() Delegate is null for username: " + username);<NEW_LINE>if (session == null)<NEW_LINE>throw new OSecurityAcc...
delegate.getUser(session, username);
1,735,786
public IQueueActionResult removeFromPickingSlotQueue(final de.metas.picking.model.I_M_PickingSlot pickingSlot, final I_M_HU hu) {<NEW_LINE>Check.assumeNotNull(pickingSlot, "pickingSlot not null");<NEW_LINE>Check.assumeNotNull(hu, "hu not null");<NEW_LINE>final I_M_PickingSlot pickingSlotExt = InterfaceWrapperHelper.<MA...
create(pickingSlot, I_M_PickingSlot.class);
1,677,088
Properties smtpDataToProperties(Customer customer, SmtpData smtpData) {<NEW_LINE>Properties props = new Properties();<NEW_LINE>try {<NEW_LINE>Config runtimeConfig = configFactory.forCustomer(customer);<NEW_LINE>// According to official Java documentation all the parameters should be added<NEW_LINE>// as String.<NEW_LIN...
(runtimeConfig.getInt("yb.health.smtp_timeout_ms"));
351,520
private int emitLocalsAtAddress(int curLocalIdx) throws IOException {<NEW_LINE><MASK><NEW_LINE>// TODO: Don't emit ends implied by starts.<NEW_LINE>while ((curLocalIdx < sz) && (locals.get(curLocalIdx).getAddress() == address)) {<NEW_LINE>LocalList.Entry entry = locals.get(curLocalIdx++);<NEW_LINE>int reg = entry.getRe...
int sz = locals.size();
614,707
private synchronized void handleNewFactories(Collection<RSocketSupplier> newFactories) {<NEW_LINE>Set<RSocketSupplier> current = new HashSet<>(factoryPool.size() + leasedSuppliers.size());<NEW_LINE>current.addAll(factoryPool);<NEW_LINE>current.addAll(leasedSuppliers);<NEW_LINE>Set<RSocketSupplier> removed = new HashSet...
debug(msgBuilder.toString());
324,803
public void updateChunks() {<NEW_LINE>while (renderDispatcher.runTasksSync(0)) {<NEW_LINE>((WorldRendererAccessor) hooked).setDisplayListEntitiesDirty(true);<NEW_LINE>}<NEW_LINE>// #if MC>=10904<NEW_LINE>PriorityBlockingQueue<ChunkRenderTask> queueChunkUpdates;<NEW_LINE>// #else<NEW_LINE>// $$ BlockingQueue<ChunkCompil...
.getChunksToUpdate().iterator();
916,436
public AssetPropertyVariant unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>AssetPropertyVariant assetPropertyVariant = new AssetPropertyVarian...
().unmarshall(context));
275,307
public void process(CommandProcess process) {<NEW_LINE>RowAffect affect = new RowAffect();<NEW_LINE>Instrumentation inst = process.session().getInstrumentation();<NEW_LINE>if (hashCode == null && classLoaderClass != null) {<NEW_LINE>List<ClassLoader> matchedClassLoaders = ClassLoaderUtils.getClassLoaderByClassName(inst...
.end(-1, "processing error");
1,159,407
public void onRender(MatrixStack matrixStack, float partialTicks) {<NEW_LINE>if (currentBlock == null)<NEW_LINE>return;<NEW_LINE>// GL settings<NEW_LINE>GL11.glEnable(GL11.GL_BLEND);<NEW_LINE>GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);<NEW_LINE>GL11.glEnable(GL11.GL_LINE_SMOOTH);<NEW_LINE>GL11.glE...
currentBlock.getZ() - regionZ);
1,802,151
public static void addTermToTarget(Urn labelUrn, Urn targetUrn, String subResource, Urn actor, EntityService entityService) throws URISyntaxException {<NEW_LINE>if (subResource == null || subResource.equals("")) {<NEW_LINE>com.linkedin.common.GlossaryTerms terms = (com.linkedin.common.GlossaryTerms) getAspectFromEntity...
.setAuditStamp(getAuditStamp(actor));
1,608,445
private long resolveRelativeOffset(long val, DwarfDecodeContext context) throws MemoryAccessException {<NEW_LINE>Program prog = context.getProgram();<NEW_LINE><MASK><NEW_LINE>AddressSpace ram = prog.getAddressFactory().getDefaultAddressSpace();<NEW_LINE>if ((val == 0 || val == addr.getOffset()) && isIndirect) {<NEW_LIN...
Address addr = context.getAddress();
868,911
private <T> T withFollowingRedirect(WebTarget initialWebTarget, RequestWithFollowingRedirect<T> request) {<NEW_LINE>WebApplicationException firstRedirectException = null;<NEW_LINE>WebTarget webTarget = initialWebTarget;<NEW_LINE>Optional<Response<MASK><NEW_LINE>for (int i = 0; i < MAX_REDIRECT; i++) {<NEW_LINE>try {<NE...
> lastResponse = Optional.absent();
365,874
public Set<Flow> bddLoopDetection(NetworkSnapshot snapshot) {<NEW_LINE>BDDPacket pkt = new BDDPacket();<NEW_LINE>// TODO add ignoreFilters parameter<NEW_LINE>boolean ignoreFilters = false;<NEW_LINE>BDDReachabilityAnalysisFactory bddReachabilityAnalysisFactory = getBddReachabilityAnalysisFactory(snapshot, pkt, ignoreFil...
setIngressNode(loc.getNode());
751,453
private void rehash() {<NEW_LINE><MASK><NEW_LINE>int oldSize = size();<NEW_LINE>int newCapacity = capacity * 2;<NEW_LINE>free = capacity = newCapacity;<NEW_LINE>int len = Numbers.ceilPow2((int) (newCapacity / loadFactor));<NEW_LINE>this.keys = alloc(len);<NEW_LINE>this.mask = len - 1;<NEW_LINE>Arrays.fill(keys, noEntry...
long[] old = this.keys;
944,943
public void run(RegressionEnvironment env) {<NEW_LINE>sendCurrentTime(env, "2002-02-01T09:00:00.000");<NEW_LINE>String epl = "@name('s0') select rstream * from SupportBean#time(1 month)";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.sendEventBean(new SupportBean("E1", 1));<NEW_LINE>sendCurrentTime(en...
new SupportBean("E2", 2));
1,318,994
final ListBotsResult executeListBots(ListBotsRequest listBotsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listBotsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R...
(super.beforeMarshalling(listBotsRequest));
13,177
void updateNetworkSelections() {<NEW_LINE>boolean networkSelected = String.valueOf(CommService.MEDIUM.NETWORK.ordinal()).equals(prefs.getString(KEY_COMM_MEDIUM, ""));<NEW_LINE>boolean bluetoothSelected = String.valueOf(CommService.MEDIUM.BLUETOOTH.ordinal()).equals(prefs<MASK><NEW_LINE>boolean usbSelected = String.valu...
.getString(KEY_COMM_MEDIUM, ""));
1,033,294
public void outputOvertimeData() {<NEW_LINE>LOG.info("start to outputOvertimeData profileCacheSize:{},dispatchQueueSize:{}", profileCache.size(), dispatchQueue.size());<NEW_LINE>long currentTime = System.currentTimeMillis();<NEW_LINE>long createThreshold = currentTime - dispatchTimeout;<NEW_LINE>List<String> removeKeys...
DispatchProfile dispatchProfile = entry.getValue();
1,478,736
public void configurationChanged(ConfigurationEvent event) {<NEW_LINE>if (event.isBeforeUpdate() || (event.getType() != AbstractConfiguration.EVENT_ADD_PROPERTY && event.getType() != AbstractConfiguration.EVENT_SET_PROPERTY)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String name = event.getPropertyName();<NEW_LINE>String ...
stack.getKey(), value);
913,362
void startServer(SensorContext context, List<Path> deployedBundles) throws IOException {<NEW_LINE>PROFILER.startDebug("Starting server");<NEW_LINE>port = findOpenPort();<NEW_LINE>File scriptFile = new File(bundle.startServerScript());<NEW_LINE>if (!scriptFile.exists()) {<NEW_LINE>throw new NodeCommandException(<MASK><N...
"Node.js script to start eslint-bridge server doesn't exist: " + scriptFile.getAbsolutePath());
1,738,469
final DescribeDBSubnetGroupsResult executeDescribeDBSubnetGroups(DescribeDBSubnetGroupsRequest describeDBSubnetGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDBSubnetGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
802,309
private void startMppServer(SystemConfig system) {<NEW_LINE>if (TddlNode.getNodeId() == 0 && System.getProperty("nodeId") != null) {<NEW_LINE>TddlNode.setNodeId(Integer.parseInt(System.getProperty("nodeId")));<NEW_LINE>logger.warn("mpp set nodeId=" + TddlNode.getNodeId());<NEW_LINE>}<NEW_LINE>TaskResource.setDrdsContex...
setExecutorService(dataSource.borrowExecutorService());
373,587
protected void genTokenDefinitions(TokenManager tm) throws IOException {<NEW_LINE>// Generate a definition for each token type<NEW_LINE>Vector v = tm.getVocabulary();<NEW_LINE>// Do special tokens manually<NEW_LINE>println("public static final EOF = " + Token.EOF_TYPE);<NEW_LINE>println("public static final NULL_TREE_L...
StringLiteralSymbol) tm.getTokenSymbol(s);
1,472,076
public void authenticate(RoutingContext context, Handler<AsyncResult<User>> handler) {<NEW_LINE>switch(source) {<NEW_LINE>case HEADER:<NEW_LINE>MultiMap headers = context.request().headers();<NEW_LINE>if (headers != null && headers.contains(value)) {<NEW_LINE>authProvider.authenticate(new TokenCredentials(headers.get(v...
.request().params();
1,255,639
protected List<float[]> convertColumn(float[] cLine) {<NEW_LINE>if (cLine.length < 4)<NEW_LINE>throw new RuntimeException(MessageLocalization.getComposedMessage("no.valid.column.line.found"));<NEW_LINE>List<float[]> cc = new ArrayList<>();<NEW_LINE>for (int k = 0; k < cLine.length - 2; k += 2) {<NEW_LINE>if (cLine.leng...
(maxY, r[1]);
365,045
/*<NEW_LINE>* Helper to read a fingerprint file (.fp) front to end and check for inconsistencies.<NEW_LINE>*/<NEW_LINE>@SuppressWarnings("resource")<NEW_LINE>public static void main(String[] args) throws IOException {<NEW_LINE>if (args.length == 1 && !args[0].equals("")) {<NEW_LINE>final BufferedRandomAccessFile braf =...
, superset.getFilePointer()));
329,300
public static void createRealms(String defaultRealm, List<AuthRealm> realms, String configName) {<NEW_LINE>// need at least one good realm<NEW_LINE>String goodRealm = null;<NEW_LINE>for (AuthRealm realm : realms) {<NEW_LINE>String realmName = realm.getName();<NEW_LINE>String realmClass = realm.getClassname();<NEW_LINE>...
log(FINE, "Default realm is set to: {0}", defaultRealm);
1,630,364
private void filterWhenSecurityEnabled(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain, UsernamePassword usernamePassword) throws IOException, ServletException {<NEW_LINE>if (usernamePassword == null) {<NEW_LINE>LOGGER.debug("Basic auth credentials are not provided in request.");<NEW_L...
LOGGER.debug("Failed to authenticate user.", e);
705,501
protected void parseFormProperties(BpmnParse bpmnParse, ExpressionManager expressionManager, Element extensionElement) {<NEW_LINE>FormTypes formTypes = getFormTypes();<NEW_LINE>List<Element> formPropertyElements = extensionElement.elementsNS(BpmnParse.CAMUNDA_BPMN_EXTENSIONS_NS, FORM_PROPERTY_ELEMENT);<NEW_LINE>for (El...
formPropertyElement.attribute("readable", "true");
491,685
public void writePraatDurationTier(String fileName) throws IOException {<NEW_LINE>// initialize times and values with a size corresponding to two elements (start and end) per unit:<NEW_LINE>ArrayList<Double> times = new ArrayList<Double>(units.size() * 2);<NEW_LINE>ArrayList<Double> values = new ArrayList<Double>(units...
add(phone.getLeftDurationFactor());
770,672
private Map<String, List<String>> processAllowedCodes(RuntimeResourceDefinition theResDef, List<AllowedCodeInValueSet> theAllowedCodeInValueSet) {<NEW_LINE>Map<String, List<String>> retVal = null;<NEW_LINE>for (AllowedCodeInValueSet next : theAllowedCodeInValueSet) {<NEW_LINE>String resourceName = next.getResourceName(...
()).add(valueSetUrl);
1,632,032
public static HSBType fromXY(float x, float y) {<NEW_LINE>float tmpY = 1.0f;<NEW_LINE>float tmpX = (tmpY / y) * x;<NEW_LINE>float tmpZ = (tmpY / y) * (1.0f - x - y);<NEW_LINE>float r = tmpX * XY2RGB[0][0] + tmpY * XY2RGB[0][1] + tmpZ <MASK><NEW_LINE>float g = tmpX * XY2RGB[1][0] + tmpY * XY2RGB[1][1] + tmpZ * XY2RGB[1]...
* XY2RGB[0][2];
738,103
private static void readFiles(final Collection<File> counterSetFiles, final CounterSet counterSet, final int nsamples, final PeriodEnum period, final Pattern regex) throws IOException, SAXException, ParserConfigurationException, InterruptedException, ExecutionException {<NEW_LINE>// flatten directories in the list of f...
counterSet, nsamples, period, regex);
314,122
/* Build call for throttlingPoliciesCustomRuleIdDelete */<NEW_LINE>private com.squareup.okhttp.Call throttlingPoliciesCustomRuleIdDeleteCall(String ruleId, String ifMatch, String ifUnmodifiedSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRe...
localVarHeaderParams.put("Accept", localVarAccept);
799,539
public void actionPerformed(ActionEvent event) {<NEW_LINE>// TODO: refactor to put tab index from Tab enum<NEW_LINE>if (panelClass.equals("GlobalPanel")) {<NEW_LINE>new MacroButtonProperties(panelClass, MacroButtonPrefs.getNextIndex(), button.<MASK><NEW_LINE>} else if (panelClass.equals("CampaignPanel")) {<NEW_LINE>new...
getProperties().getGroup());
772,280
private void makeDelegate() throws IOException {<NEW_LINE>// noinspection VariableNotUsedInsideIf<NEW_LINE>if (delegate != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>CompressionFactory.LongEncodingWriter writer;<NEW_LINE>long delta;<NEW_LINE>try {<NEW_LINE>delta = LongMath.checkedSubtract(maxVal, minVal);<NEW_LINE>} ...
= new TableLongEncodingWriter(uniqueValues, valuesAddedInOrder);
69,866
private static void printSection(PrintStream out, String sectionID) {<NEW_LINE>List<BaseConfigSection> configSections = ConsoleConfigSections.getInstance().getAllConfigSections(false);<NEW_LINE>BaseConfigSection section = null;<NEW_LINE>for (BaseConfigSection configSection : configSections) {<NEW_LINE>if (configSection...
(section.getSectionNameKey()));