idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,473,847
public void marshall(UpdateStackRequest updateStackRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateStackRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateStackRequest.getStackId(...
updateStackRequest.getDefaultInstanceProfileArn(), DEFAULTINSTANCEPROFILEARN_BINDING);
367,545
private void addProjects(File[] files, Map<String, Project> projects) {<NEW_LINE>// Keep a copy of the old project list so that we can preserve<NEW_LINE>// the customization of existing projects.<NEW_LINE>Map<String, Project> oldProjects = new HashMap<>();<NEW_LINE>for (Project p : projects.values()) {<NEW_LINE>oldProj...
String name = file.getName();
1,624,878
public static void horizontal(Kernel1D_S32 kernel, InterleavedU8 src, InterleavedI8 dst, int divisor) {<NEW_LINE>final byte[] dataSrc = src.data;<NEW_LINE>final byte[] dataDst = dst.data;<NEW_LINE>final int[] dataKer = kernel.data;<NEW_LINE>final <MASK><NEW_LINE>final int kernelWidth = kernel.getWidth();<NEW_LINE>final...
int offset = kernel.getOffset();
1,818,789
// Not using Vaadin notifications (#14597)<NEW_LINE>private void notice(String productName) {<NEW_LINE>if (notice == null) {<NEW_LINE>notice = new HTML();<NEW_LINE>notice.addClickHandler(event -> notice.removeFromParent());<NEW_LINE>notice.addTouchStartHandler(event -> notice.removeFromParent());<NEW_LINE>}<NEW_LINE>St...
setRight(0, Unit.PX);
388,987
public static DescribeClusterServiceResponse unmarshall(DescribeClusterServiceResponse describeClusterServiceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeClusterServiceResponse.setRequestId(_ctx.stringValue("DescribeClusterServiceResponse.RequestId"));<NEW_LINE>ServiceInfo serviceInfo = new ServiceInfo();<NEW...
("DescribeClusterServiceResponse.ServiceInfo.ServiceActionList[" + i + "].ComponentName"));
828,430
protected void exportItem(Context c, Item myItem, String destDirName, int seqStart, boolean migrate, boolean excludeBitstreams) throws Exception {<NEW_LINE>File destDir = new File(destDirName);<NEW_LINE>if (destDir.exists()) {<NEW_LINE>// now create a subdirectory<NEW_LINE>File itemDir = new <MASK><NEW_LINE>System.out....
File(destDir + "/" + seqStart);
1,540,364
private void paintAncestors(DiGraphNode<N, E> root, Color color) {<NEW_LINE>checkState(this.searchQueue.isEmpty());<NEW_LINE>this.searchQueue.addLast(root);<NEW_LINE>while (!this.searchQueue.isEmpty()) {<NEW_LINE>DiGraphNode<N, E> curr = this.searchQueue.removeFirst();<NEW_LINE>List<? extends DiGraphEdge<N, E><MASK><NE...
> parentEdges = curr.getInEdges();
210,752
private Node.Property waitProperty(final PropertySheetOperator propSheetOper, final int index) {<NEW_LINE>try {<NEW_LINE>Waiter waiter = new Waiter(new Waitable() {<NEW_LINE><NEW_LINE>public Object actionProduced(Object param) {<NEW_LINE>JTableOperator table = propSheetOper.tblSheet();<NEW_LINE>if (table.getRowCount() ...
Property) waiter.waitAction(null);
779,312
public static SQLQueryAdapter generate(SQLite3GlobalState globalState) throws SQLException {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("CREATE");<NEW_LINE>if (Randomly.getBoolean()) {<NEW_LINE>sb.append(" ");<NEW_LINE>sb.append(Randomly.fromOptions("TEMP", "TEMPORARY"));<NEW_LINE>}<NEW_LINE>sb...
PQS && !checkAffinity(randomQuery));
1,300,365
public void deleteByIdWithResponse(String id, String ifMatch, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is n...
format("The resource ID '%s' is not valid. Missing path segment 'dnsForwardingRulesets'.", id)));
1,704,540
@MethodSource("provideParameters")<NEW_LINE>public void addTestData(final String dbName, final String schemaName, final int numberOfDummyRecords, final int numberOfBatches, final int numberOfColumns, final int numberOfStreams) throws Exception {<NEW_LINE>final Database database = setupDatabase(dbName);<NEW_LINE>databas...
.format(insertQueryTemplate, currentTableName));
1,178,077
private View createFolderView(@NonNull LayoutInflater inflater, @NonNull File folder) {<NEW_LINE>View view = inflater.inflate(R.layout.bottom_sheet_item_with_descr_and_radio_btn, null);<NEW_LINE>AndroidUtils.setPadding(view, 0, 0, 0, 0);<NEW_LINE>TextView text = view.findViewById(R.id.title);<NEW_LINE>text.setText(GpxU...
findViewById(R.id.compound_button);
1,075,271
final DescribeRobotApplicationResult executeDescribeRobotApplication(DescribeRobotApplicationRequest describeRobotApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeRobotApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
addHandlerContext(HandlerContextKey.SERVICE_ID, "RoboMaker");
1,072,405
private void readData(ModeConfig modeCfg, InternalConfig internalCfg, InputStream is, Object source) throws IOException {<NEW_LINE>modeConfig = modeCfg;<NEW_LINE>internalConfig = internalCfg;<NEW_LINE>itemList.clear();<NEW_LINE>try {<NEW_LINE>synchronized (RW_LOCK) {<NEW_LINE>// DUMP BEGIN<NEW_LINE>// DUMP END<NEW_LINE...
(msg).initCause(exc);
755,107
public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {<NEW_LINE>try {<NEW_LINE>HttpServletRequest request = (HttpServletRequest) req;<NEW_LINE>HttpServletResponse response = (HttpServletResponse) res;<NEW_LINE>FilterTools.allow(request, response);<NEW_LIN...
response.setHeader("Content-Type", "application/json;charset=UTF-8");
7,085
public GetAdminAccountResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetAdminAccountResult getAdminAccountResult = new GetAdminAccountResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
class).unmarshall(context));
692,622
final GetHostedConfigurationVersionResult executeGetHostedConfigurationVersion(GetHostedConfigurationVersionRequest getHostedConfigurationVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getHostedConfigurationVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
493,601
public int vote(Authentication authentication, FilterInvocation filter, Collection<ConfigAttribute> attributes) {<NEW_LINE>if ("anonymousUser".equals(authentication.getPrincipal())) {<NEW_LINE>return ACCESS_DENIED;<NEW_LINE>}<NEW_LINE>if (!(authentication.getPrincipal() instanceof SecuredUser)) {<NEW_LINE>return ACCESS...
getOneWithEagerFetch(loginUser.getUserId());
890,446
public CompletableFuture<GrpcMessagingConnection> connect(InetSocketAddress address) {<NEW_LINE><MASK><NEW_LINE>final GrpcMessagingContext threadContext = GrpcMessagingContext.currentContextOrThrow();<NEW_LINE>// Future for this connection.<NEW_LINE>final CompletableFuture<GrpcMessagingConnection> connectionFuture = ne...
LOG.debug("Creating a messaging client connection to: {}", address);
1,802,681
public final Option parse(List<String> args) {<NEW_LINE>Pattern eqSeparatedOpt = Pattern.compile("(--[^=]+)=(.+)");<NEW_LINE>int idx = 0;<NEW_LINE>for (idx = 0; idx < args.size(); idx++) {<NEW_LINE>String arg = args.get(idx);<NEW_LINE>String value = null;<NEW_LINE>Matcher m = eqSeparatedOpt.matcher(arg);<NEW_LINE>if (m...
arg = m.group(1);
389,034
static void removeStepRequests(JPDADebuggerImpl debugger, ThreadReference tr) {<NEW_LINE>// S ystem.out.println ("removeStepRequests");<NEW_LINE>try {<NEW_LINE>VirtualMachine vm = debugger.getVirtualMachine();<NEW_LINE>if (vm == null)<NEW_LINE>return;<NEW_LINE>EventRequestManager erm = VirtualMachineWrapper.eventReques...
EventRequestManagerWrapper.deleteEventRequest(erm, stepRequest);
369,877
static MethodAnnotation obfuscate(MethodAnnotation m) {<NEW_LINE>String className = m.getClassName();<NEW_LINE>if (className.startsWith("java")) {<NEW_LINE>return m;<NEW_LINE>}<NEW_LINE>String methodName = m.getMethodName();<NEW_LINE><MASK><NEW_LINE>if ("hashCode".equals(methodName) && "()I".equals(methodSignature) || ...
String methodSignature = m.getMethodSignature();
402,753
public static double[] calculateMidPoint(double firstLat, double firstLon, double secondLat, double secondLon) {<NEW_LINE>double lat1 = firstLat / 180 * Math.PI;<NEW_LINE>double lon1 = firstLon / 180 * Math.PI;<NEW_LINE>double lat2 = secondLat / 180 * Math.PI;<NEW_LINE>double lon2 = secondLon / 180 * Math.PI;<NEW_LINE>...
.cos(lat1) + Bx);
163,843
public List<Pet> findPetsByStatus(List<String> status) throws RestClientException {<NEW_LINE>Object postBody = null;<NEW_LINE>// verify the required parameter 'status' is set<NEW_LINE>if (status == null) {<NEW_LINE>throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'status' when ...
] accepts = { "application/xml", "application/json" };
465,881
// Test the code path where untimed invokeAll is interrupted while it is running a task on the current thread<NEW_LINE>// after the other tasks have been successfully submitted. Once interrupted, invokeAll must immediately cancel all of<NEW_LINE>// its tasks which have not already completed and return.<NEW_LINE>@Test<N...
CountDownLatch beginLatch = new CountDownLatch(2);
1,789,237
final GetLoggerDefinitionVersionResult executeGetLoggerDefinitionVersion(GetLoggerDefinitionVersionRequest getLoggerDefinitionVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getLoggerDefinitionVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
invoke(request, responseHandler, executionContext);
1,086,802
private void handleOutline(User user, Outline outline, FeedCategory parent, int position) {<NEW_LINE>List<Outline> children = outline.getChildren();<NEW_LINE>if (CollectionUtils.isNotEmpty(children)) {<NEW_LINE>String name = FeedUtils.truncate(outline.getText(), 128);<NEW_LINE>if (name == null) {<NEW_LINE>name = FeedUt...
findByName(user, name, parent);
470,282
private static boolean isKinesisConfigured(TableConfig tableConfig) {<NEW_LINE><MASK><NEW_LINE>if (indexingConfig != null) {<NEW_LINE>Map<String, String> streamConfig = indexingConfig.getStreamConfigs();<NEW_LINE>if (streamConfig != null && KINESIS_STREAM_TYPE.equals(streamConfig.get(StreamConfigProperties.STREAM_TYPE)...
IndexingConfig indexingConfig = tableConfig.getIndexingConfig();
191,197
private void convertData() {<NEW_LINE>m_traces <MASK><NEW_LINE>for (final TraceList trace : m_module.getContent().getTraceContainer().getTraces()) {<NEW_LINE>m_traces.add(new Trace(trace));<NEW_LINE>}<NEW_LINE>m_module.getContent().getTraceContainer().addListener(m_traceListener);<NEW_LINE>m_functions = new ArrayList<F...
= new ArrayList<Trace>();
545,355
public boolean consumeIngredients(RecipeQuery[] queries, ArrayList<ItemStack> itemStacks, boolean doConsume, @Nullable NonNullList<ItemStack> gridItems, @Nullable BooleanList providedByNonItem) {<NEW_LINE>Preconditions.checkArgument((gridItems == null) == (providedByNonItem == null));<NEW_LINE>if (!doConsume) {<NEW_LIN...
> it = itemStacks.iterator();
1,253,213
private void processAction(long currentTime, String timeInSec, TimeAction value, boolean isAssert, boolean isExpectNullRemoveStream, boolean assertAllowAnyOrder) {<NEW_LINE>Map<Integer, StepDesc> assertions = expected.<MASK><NEW_LINE>// Assert step 0 which is the timer event result then send events and assert remaining...
getAssertions().get(currentTime);
1,557,680
private static void parse(JSONValue v, GeometryUtils.Target target) {<NEW_LINE>if (v instanceof JSONNull) {<NEW_LINE>target.startPoint();<NEW_LINE>target.addCoordinate(Double.NaN, Double.NaN, Double.NaN, Double.NaN, 0, 1);<NEW_LINE>target.endObject(POINT);<NEW_LINE>} else if (v instanceof JSONObject) {<NEW_LINE>JSONObj...
parse(o, target, MULTI_LINE_STRING);
740,252
private boolean decodeBin() {<NEW_LINE>int opcode = RV32imSupport.getOpcode(instruction);<NEW_LINE>if (opcode == LOAD) {<NEW_LINE>destination = RV32imSupport.getDestinationRegisterIndex(instruction);<NEW_LINE>immediate = RV32imSupport.getImmediateValue(instruction, RV32imSupport.I_TYPE);<NEW_LINE><MASK><NEW_LINE>int fu...
base = RV32imSupport.getSourceRegister1Index(instruction);
692,895
final ListRegexMatchSetsResult executeListRegexMatchSets(ListRegexMatchSetsRequest listRegexMatchSetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRegexMatchSetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
159,862
protected Map<String, List<String>> discoverPrimaryKeys(final JdbcDatabase database, final List<TableInfo<CommonField<Datatype>>> tableInfos) {<NEW_LINE>LOGGER.info("Discover primary keys for tables: " + tableInfos.stream().map(TableInfo::getName).collect(Collectors.toSet()));<NEW_LINE>try {<NEW_LINE>// Get all primary...
), tableInfo.getName());
58,341
protected ScatterData generateScatterData(int dataSets, float range, int count) {<NEW_LINE>ArrayList<IScatterDataSet> sets = new ArrayList<>();<NEW_LINE>ScatterChart.ScatterShape[] shapes = ScatterChart.ScatterShape.getAllDefaultShapes();<NEW_LINE>for (int i = 0; i < dataSets; i++) {<NEW_LINE>ArrayList<Entry> entries =...
ds.setColors(ColorTemplate.COLORFUL_COLORS);
1,501,412
public Tuple2<Double, Double> calcHessianGradientLoss(Iterable<Tuple3<Double, Double, Vector>> labelVectors, DenseVector coefVector, DenseMatrix hessian, DenseVector grad) {<NEW_LINE>if (this.hasSecondDerivative()) {<NEW_LINE>int size = grad.size();<NEW_LINE>for (int i = 0; i < size; ++i) {<NEW_LINE><MASK><NEW_LINE>for...
grad.set(i, 0.0);
1,686,727
public OCFile saveFileWithParent(OCFile ocFile, Context context) {<NEW_LINE>if (ocFile.getParentId() == 0 && !OCFile.ROOT_PATH.equals(ocFile.getRemotePath())) {<NEW_LINE>String remotePath = ocFile.getRemotePath();<NEW_LINE>String parentPath = remotePath.substring(0, remotePath.lastIndexOf(ocFile.getFileName()));<NEW_LI...
+ " / " + result.getLogMessage();
1,311,640
public void marshall(ListPlaceIndexesResponseEntry listPlaceIndexesResponseEntry, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listPlaceIndexesResponseEntry == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marsha...
e.getMessage(), e);
1,823,072
public static <R extends ReflectiveVisitor, E> ReflectiveVisitDispatcher<R, E> createDispatcher(final Class<R> visitorBaseClazz, final Class<E> visiteeBaseClazz) {<NEW_LINE>assert ReflectiveVisitor.class.isAssignableFrom(visitorBaseClazz);<NEW_LINE>assert Object.class.isAssignableFrom(visiteeBaseClazz);<NEW_LINE>return...
visitor, visitee, visiteeBaseClazz, visitMethodName);
144,796
private static Node<Integer> test2() {<NEW_LINE>Node<Integer> root = <MASK><NEW_LINE>Node<Integer> n11 = new Node<Integer>(7);<NEW_LINE>Node<Integer> n12 = new Node<Integer>(5);<NEW_LINE>Node<Integer> n21 = new Node<Integer>(2);<NEW_LINE>Node<Integer> n22 = new Node<Integer>(6);<NEW_LINE>Node<Integer> n23 = new Node<In...
new Node<Integer>(2);
1,017,830
static final <T> List<T> sortedMerger(List<T> a, List<T> b, Comparator<? super T> comparator) {<NEW_LINE>int n = a.size() + b.size();<NEW_LINE>if (n == 0) {<NEW_LINE>return new ArrayList<>();<NEW_LINE>}<NEW_LINE>List<T> both = new ArrayList<>(n);<NEW_LINE>Iterator<T> at = a.iterator();<NEW_LINE>Iterator<T> bt = b.itera...
? bt.next() : null;
313,975
final CreateConfigurationSetTrackingOptionsResult executeCreateConfigurationSetTrackingOptions(CreateConfigurationSetTrackingOptionsRequest createConfigurationSetTrackingOptionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createConfigurationSetTrackingOptionsRequest);<NEW_LINE>AWSReque...
(super.beforeMarshalling(createConfigurationSetTrackingOptionsRequest));
359,218
public Grafo carga() {<NEW_LINE>String line = readLine();<NEW_LINE>String[] splitLine;<NEW_LINE>Arista arista;<NEW_LINE>Vertice a, b;<NEW_LINE>AristContainer contAristas = new AristContainer();<NEW_LINE>VerticesSet vertices = new VerticesSet();<NEW_LINE>while (line != null) {<NEW_LINE>// si comienza por # es un comenta...
Grafo(vertices.size());
1,548,496
public static void main(String[] args) {<NEW_LINE>var executeService = Executors.newFixedThreadPool(10);<NEW_LINE>var lock = new ReaderWriterLock();<NEW_LINE>// Start writers<NEW_LINE>for (var i = 0; i < 5; i++) {<NEW_LINE>var writingTime = ThreadLocalRandom.current().nextLong(5000);<NEW_LINE>executeService.submit(new ...
awaitTermination(5, TimeUnit.SECONDS);
1,598,275
public DebeziumSourceFunction<T> build() {<NEW_LINE>Properties props = new Properties();<NEW_LINE>props.setProperty("connector.class", PostgresConnector.class.getCanonicalName());<NEW_LINE>props.setProperty("plugin.name", pluginName);<NEW_LINE>// hard code server name, because we don't need to distinguish it, docs:<NEW...
.join(",", tableList));
217,240
public void cancelAllTimers() {<NEW_LINE>TimerService ts = ivContext.getTimerService();<NEW_LINE>svLogger.logp(Level.INFO, "", "", "Calling cancelAllTimers() ... ");<NEW_LINE>try {<NEW_LINE>Collection<Timer> timers = ts.getTimers();<NEW_LINE>for (Timer t : timers) {<NEW_LINE>svLogger.logp(Level.INFO, "", "", "Cancellin...
th.printStackTrace(System.out);
46,156
public static String formatPeriod(final ReadablePeriod period) {<NEW_LINE>String periodStr = "null";<NEW_LINE>if (period == null) {<NEW_LINE>return periodStr;<NEW_LINE>}<NEW_LINE>if (period.get(DurationFieldType.years()) > 0) {<NEW_LINE>final int years = period.get(DurationFieldType.years());<NEW_LINE>periodStr = years...
get(DurationFieldType.seconds());
774,198
private static void dispatchCopyKernel(LevelZeroCommandList commandList, LevelZeroCommandQueue commandQueue, LevelZeroKernel levelZeroKernel, long[] output, int bufferSize, ByteBuffer stack) {<NEW_LINE>ZeKernelHandle kernel = levelZeroKernel.getKernelHandle();<NEW_LINE>// Prepare kernel for launch<NEW_LINE>// A) Sugges...
zeCommandListClose(commandList.getCommandListHandlerPtr());
124,208
public void marshall(GetTableObjectsRequest getTableObjectsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (getTableObjectsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(getTableObjectsReq...
getTableObjectsRequest.getNextToken(), NEXTTOKEN_BINDING);
725,037
public List<ValidateError> validate() {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(this.systemName, convLabelName("System Name"));<NEW_LINE...
.insertUser, convLabelName("Insert User"));
436,033
private void copySettingsFiles() throws IOException {<NEW_LINE>// long start, end, diff;<NEW_LINE>// start = System.currentTimeMillis();<NEW_LINE>if (DEBUG)<NEW_LINE>Debug.log(PersistenceManager.class, "copySettingsFiles ENTER");<NEW_LINE>Set<String> localSet = new HashSet<String>(100);<NEW_LINE>FileObject[] filesLocal...
= getComponentsLocalFolder().getChildren();
328,918
public Request<CopyDBParameterGroupRequest> marshall(CopyDBParameterGroupRequest copyDBParameterGroupRequest) {<NEW_LINE>if (copyDBParameterGroupRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<CopyDBParameterGroupRequest> request = new De...
request.setHttpMethod(HttpMethodName.POST);
1,715,794
public State convertState(Widget w, Item i, State state) {<NEW_LINE>State returnState = null;<NEW_LINE>State itemState = i.getState();<NEW_LINE>if (itemState instanceof QuantityType) {<NEW_LINE>itemState = convertStateToWidgetUnit((QuantityType<?>) itemState, w);<NEW_LINE>}<NEW_LINE>if (itemState != null) {<NEW_LINE>if...
itemState.as(OnOffType.class);
213,332
public void onDialogResult(int requestCode, Bundle bundle) {<NEW_LINE>switch(requestCode) {<NEW_LINE>case DIALOG_REQUEST_OPERATION:<NEW_LINE>int index = bundle.getInt(EXTRA_DIALOG_RESULT_INDEX);<NEW_LINE>switch(index) {<NEW_LINE>case OPERATION_INFO:<NEW_LINE>showComicInfo(mPresenter.load(mSavedId), DIALOG_REQUEST_INFO)...
), R.string.download_ask_stop);
420,965
final DeleteFaqResult executeDeleteFaq(DeleteFaqRequest deleteFaqRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteFaqRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,109,934
private static File findPath() {<NEW_LINE>String classResourcePath = WorkPath.class.getName().replaceAll("\\.", "/") + ".class";<NEW_LINE>URL resource = ClassLoader.getSystemClassLoader().getResource(classResourcePath);<NEW_LINE>if (resource != null) {<NEW_LINE><MASK><NEW_LINE>LOGGER.debug("The beacon class location is...
String urlString = resource.toString();
1,673,994
private Multimap<String, JMethod> collectMostSpecificSuperInterfaceMethodsBySignature(JDeclaredType type) {<NEW_LINE>Multimap<String, JMethod> interfaceMethodsBySignature = LinkedHashMultimap.create();<NEW_LINE>collectAllSuperInterfaceMethodsBySignature(type, interfaceMethodsBySignature);<NEW_LINE>List<String> signatur...
notOverriddenMethods = Sets.newLinkedHashSet(allMethods);
1,052,242
private void calcPositionAndShow(Project project, JBPopup balloon) {<NEW_LINE>Point savedLocation = WindowStateService.getInstance(myProject).getLocation(LOCATION_SETTINGS_KEY);<NEW_LINE>// for first show and short mode popup should be shifted to the top screen half<NEW_LINE>if (savedLocation == null && mySearchEverywh...
RelativePoint showPoint = new RelativePoint(screenPoint);
355,440
private List<NameValueCountPair> listStartTimeMonthPair(Business business, EffectivePerson effectivePerson) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Read.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<String> cq = cb.createQuery(String.c...
cq.from(Read.class);
847,373
private void generateConverterInit(final InstructionAdapter mv, final boolean samOnly) {<NEW_LINE>assert !samOnly || !classOverride;<NEW_LINE>for (final Map.Entry<Class<?>, String> converterField : converterFields.entrySet()) {<NEW_LINE>final Class<?> returnType = converterField.getKey();<NEW_LINE>if (!classOverride) {...
converterField.getValue(), METHOD_HANDLE_TYPE_DESCRIPTOR);
666,012
protected List<String> parseCommaSeparatedList(String s) {<NEW_LINE>List<String> result = new ArrayList<>();<NEW_LINE>if (s != null && !"".equals(s)) {<NEW_LINE>StringCharacterIterator iterator = new StringCharacterIterator(s);<NEW_LINE>char c = iterator.first();<NEW_LINE>StringBuilder strb = new StringBuilder();<NEW_L...
toString().trim());
341,742
public LibvirtVMDef createVMFromSpec(final VirtualMachineTO vmTO) {<NEW_LINE>s_logger.debug(String.format("Creating VM from specifications [%s]", vmTO.toString()));<NEW_LINE>LibvirtVMDef vm = new LibvirtVMDef();<NEW_LINE>vm.setDomainName(vmTO.getName());<NEW_LINE>String uuid = vmTO.getUuid();<NEW_LINE>uuid = getUuid(uu...
.format("Enabled UEFI for VM UUID [%s].", uuid));
152,125
protected boolean checkSearchId(Indexer indexer) {<NEW_LINE>boolean needToSearchById = !searchRequest.getIdentifiers().isEmpty() && !searchRequest.getQuery().isPresent();<NEW_LINE>if (needToSearchById) {<NEW_LINE>boolean canUseAnyProvidedId = !Collections.disjoint(searchRequest.getIdentifiers().keySet(), indexer.getCon...
getGenerateQueries().meets(searchRequest);
1,107,868
protected Object initializeEJB(EJBBinding binding, String jndiName) throws NamingException {<NEW_LINE>Object instance = null;<NEW_LINE>if (binding == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Home and remote interfaces are not supported in Liberty<NEW_LINE>if (binding.isHome() && !homeRuntime) {<NEW_LINE>thr...
createLocalBusinessObject(binding.interfaceIndex, null);
402,274
protected void onBefore() {<NEW_LINE>super.onBefore();<NEW_LINE>setResultset(<MASK><NEW_LINE>// DISABLE THE NETWORK AND STORAGE TIMEOUTS<NEW_LINE>properties.put(OConsoleProperties.LIMIT, "20");<NEW_LINE>properties.put(OConsoleProperties.DEBUG, "false");<NEW_LINE>properties.put(OConsoleProperties.COLLECTION_MAX_ITEMS, "...
new ArrayList<OIdentifiable>());
1,772,410
private static // rate calculation<NEW_LINE>RateCalculation parseRateCalculation(CsvRow row, String leg, FloatingRateIndex index, DayCount defaultFixedLegDayCount, BusinessDayAdjustment bda, Currency currency) {<NEW_LINE>if (index instanceof IborIndex) {<NEW_LINE>return parseIborRateCalculation(row, leg, (IborIndex) in...
FloatingRateName frn = frnOpt.get();
1,789,721
public ShiroFilterFactoryBean shiroFilterFactoryBean(SecurityManager securityManager) {<NEW_LINE>ShiroFilterFactoryBean shiroFilterFactoryBean = new ShiroFilterFactoryBean();<NEW_LINE>shiroFilterFactoryBean.setSecurityManager(securityManager);<NEW_LINE>LinkedHashMap<String, Filter> filters = new LinkedHashMap<>();<NEW_...
filterChainDefinitionMap = new LinkedHashMap<>();
545,626
static public EObject statistics(EProc proc, EObject spec) {<NEW_LINE>if (spec == am_wall_clock) {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>long since_last = now - last_wall_clock;<NEW_LINE>long since_epoch = now - wall_clock0;<NEW_LINE>last_wall_clock = now;<NEW_LINE>return ETuple.make(ERT.box(since_ep...
.getThreadCpuTime(ts[i]);
163,464
private <T extends AcsResponse> HttpResponse doAction(AcsRequest<T> request, boolean autoRetry, int maxRetryNumber, String regionId, AlibabaCloudCredentials credentials, Signer signer, FormatType format) throws ClientException, ServerException {<NEW_LINE>if (!GlobalTracer.isRegistered() || clientProfile.isCloseTrace())...
regionId, credentials, signer, format);
598,581
public Quaternion fromEuler(double yaw, double pitch, double roll) {<NEW_LINE>yaw = Math.toRadians(yaw);<NEW_LINE><MASK><NEW_LINE>roll = Math.toRadians(roll);<NEW_LINE>double hr = roll * 0.5;<NEW_LINE>double shr = Math.sin(hr);<NEW_LINE>double chr = Math.cos(hr);<NEW_LINE>double hp = pitch * 0.5;<NEW_LINE>double shp = ...
pitch = Math.toRadians(pitch);
1,757,954
void compileSingleFile(Path filePath, Path outputDirectory, AvroOptions options) throws CodeGenException {<NEW_LINE>final Schema schema;<NEW_LINE>File file = filePath.toFile();<NEW_LINE>// This is necessary to maintain backward-compatibility. If there are<NEW_LINE>// no imported files then isolate the schemas from each...
compiler.setCreateSetters(options.createSetters);
1,143,109
private Optional<Set<BatfishUUID>> toAddressUUIDs(Address_namesContext ctx, FortiosStructureUsage usage) {<NEW_LINE>int line = ctx.start.getLine();<NEW_LINE>Map<String, Address<MASK><NEW_LINE>ImmutableSet.Builder<BatfishUUID> addressUuidsBuilder = ImmutableSet.builder();<NEW_LINE>Set<String> addresses = ctx.address_nam...
> addressesMap = _c.getAddresses();
772,317
private static void addRatingAndRes(Context context, BaseItemDto item, LinearLayout layout) {<NEW_LINE>if (item.getOfficialRating() != null && !item.getOfficialRating().equals("0")) {<NEW_LINE>addBlockText(context, layout, item.getOfficialRating());<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (item.getMediaStreams() != null...
addSpacer(context, layout, " ");
308,151
public RestoreBackupResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RestoreBackupResult restoreBackupResult = new RestoreBackupResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context...
String currentParentElement = context.getCurrentParentElement();
972,254
private List<DocumentFieldDescriptor.Builder> extractDocumentFields(final I_AD_UI_Element uiElement) {<NEW_LINE>final List<DocumentFieldDescriptor.Builder> fields = new ArrayList<>();<NEW_LINE>final LayoutElementType uiElementType = LayoutElementType.ofCode(uiElement.getAD_UI_ElementType());<NEW_LINE>if (LayoutElementT...
field = descriptorsFactory.documentField(labelsFieldName);
1,308,837
public CodegenMethod processCodegen(CodegenExpression resultEventType, CodegenExpression eventBeanFactory, CodegenMethodScope codegenMethodScope, SelectExprProcessorCodegenSymbol selectSymbol, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {<NEW_LINE>int size = this.context.getExprForges().leng...
theEvent, refEPS, refIsNewData, refExprEvalCtx);
487,739
public static Cluster swapRandomPartitionsWithinZone(final Cluster nextCandidateCluster, final int zoneId) {<NEW_LINE>Cluster returnCluster = Cluster.cloneCluster(nextCandidateCluster);<NEW_LINE>Random r = new Random();<NEW_LINE>List<Integer> nodeIdsInZone = new ArrayList<Integer>(nextCandidateCluster.getNodeIdsInZone(...
getNodeById(donorNodeId).getPartitionIds();
1,831,436
public static DescribeCasterConfigResponse unmarshall(DescribeCasterConfigResponse describeCasterConfigResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCasterConfigResponse.setRequestId(_ctx.stringValue("DescribeCasterConfigResponse.RequestId"));<NEW_LINE>describeCasterConfigResponse.setDelay(_ctx.floatValue("Des...
= new ArrayList<String>();
850,910
public static IBinaryModule rawReadModuleTestForExists(BinaryModuleDescriptor descriptor, boolean fullyInitialize, boolean useInvalidArchiveCache) throws JavaModelException, ClassFormatException, FileNotFoundException {<NEW_LINE>if (descriptor == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (descriptor.isInJarF...
.getInputStreamAsByteArray(stream, -1);
1,300,355
public BaseConnectionParam createConnectionParams(BaseDataSourceParamDTO datasourceParam) {<NEW_LINE>RedshiftDataSourceParamDTO redshiftParam = (RedshiftDataSourceParamDTO) datasourceParam;<NEW_LINE>String address = String.format("%s%s:%s", Constants.JDBC_REDSHIFT, redshiftParam.getHost(), redshiftParam.getPort());<NEW...
setDatabase(redshiftParam.getDatabase());
409,658
protected void onCreate(Env env) {<NEW_LINE>env.registerService(this);<NEW_LINE>this.environment = env;<NEW_LINE>options = env.getOptions();<NEW_LINE>if (options.hasSetOptions()) {<NEW_LINE>final TruffleAdapter truffleAdapter = launchServer(new PrintWriter(env.out(), true), new PrintWriter(env.err(), true));<NEW_LINE>S...
.getLanguageInfo()), creatorThreadId);
405,651
public boolean process(Person person, long time) {<NEW_LINE>// using the module name instead of the cause<NEW_LINE>if (person.rand() <= probability) {<NEW_LINE>if (isLegacyGmf()) {<NEW_LINE>if (exact != null) {<NEW_LINE>int quantity;<NEW_LINE>if (exact.quantity instanceof Double) {<NEW_LINE>quantity = ((Double) exact.q...
) range.high), addressed);
1,693,054
private void printMaxFlow(NetworkFlowInformation networkFlowInformation, double maxFlowValue, int source, int target) {<NEW_LINE>FlowNetwork flowNetwork = networkFlowInformation.flowNetwork;<NEW_LINE>SeparateChainingHashST<FlowEdge, FlowEdgeWithLowerBoundCapacity> originalEdges = networkFlowInformation.edgeInformation;...
"\nMax flow from " + source + " to " + target);
1,319,464
private static Set<String> collectAndSortAllPublicProductionNames(@NotNull PrefixMatcher matcher, @NotNull GlobalSearchScope scope, @Nullable IdFilter idFilter, @NotNull GoFile file) {<NEW_LINE>String prefix = matcher.getPrefix();<NEW_LINE><MASK><NEW_LINE>Set<String> packagesWithAliases = ContainerUtil.newHashSet();<NE...
boolean emptyPrefix = prefix.isEmpty();
712,212
public static void vertical9(Kernel1D_S32 kernel, GrayU8 src, GrayI16 dst) {<NEW_LINE>final byte[] dataSrc = src.data;<NEW_LINE>final short[] dataDst = dst.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel.data[3]...
[indexSrc] & 0xFF) * k9;
1,207,970
private void sendMessage() {<NEW_LINE>final String message = mSendText.getText() + "";<NEW_LINE>if (message.isEmpty()) {<NEW_LINE>setKeyboardState(KeyboardState.CLOSED);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>mSendButton.performHapticFeedback(VIBRATION_FEEDBACK);<NEW_LINE>Log.d(LOG_TAG, "Sending Message: " + message);<NE...
twitchEmotes, subscriberEmotes, chatManager, message);
73,369
private void editAction() {<NEW_LINE>ActionEntry actionEntry = (ActionEntry) actionListModel.getElementAt(actionList.getSelectedIndex());<NEW_LINE>org.icepdf.core.pobjects.actions.<MASK><NEW_LINE>// show URI edit pane<NEW_LINE>if (action instanceof URIAction) {<NEW_LINE>URIAction uriAction = (URIAction) action;<NEW_LIN...
Action action = actionEntry.getAction();
1,423,212
public static DescribeLiveStreamOnlineUserNumResponse unmarshall(DescribeLiveStreamOnlineUserNumResponse describeLiveStreamOnlineUserNumResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeLiveStreamOnlineUserNumResponse.setRequestId(_ctx.stringValue("DescribeLiveStreamOnlineUserNumResponse.RequestId"));<NEW_LINE>des...
= new ArrayList<LiveStreamOnlineUserNumInfo>();
556,339
// prepare<NEW_LINE>@Override<NEW_LINE>protected String doIt() {<NEW_LINE>if (from_AD_ImpFormat_ID.equals(to_AD_ImpFormat_ID)) {<NEW_LINE>throw new AdempiereException("Copying into same import format is not allowed");<NEW_LINE>}<NEW_LINE>final I_AD_ImpFormat from = retrieveImpFormatRecord(from_AD_ImpFormat_ID);<NEW_LIN...
= "#" + fromRows.size();
1,626,797
public static void convolve5(Kernel2D_S32 kernel, GrayS16 input, GrayI16 output, int skip) {<NEW_LINE>final short[] dataSrc = input.data;<NEW_LINE>final <MASK><NEW_LINE>final int radius = kernel.getRadius();<NEW_LINE>final int widthEnd = UtilDownConvolve.computeMaxSide(input.width, skip, radius);<NEW_LINE>final int hei...
short[] dataDst = output.data;
399,063
public Change createChange(IProgressMonitor pm) throws CoreException {<NEW_LINE>// renaming the file is taken care of in renameTypeRefactoring<NEW_LINE>if (fWillRenameType) {<NEW_LINE>return fRenameTypeProcessor.createChange(pm);<NEW_LINE>}<NEW_LINE>fRenameTypeProcessor = null;<NEW_LINE>final String newName = getNewEle...
this, header).asString();
862,376
public void run() {<NEW_LINE>t.set(Thread.currentThread());<NEW_LINE>handle.start();<NEW_LINE>NbMavenProject nbmp;<NEW_LINE>try {<NEW_LINE>nbmp = finder.find(p);<NEW_LINE>} finally {<NEW_LINE>handle.finish();<NEW_LINE>}<NEW_LINE>t.set(null);<NEW_LINE>if (nbmp == null || NbMavenProject.isErrorPlaceholder(nbmp.getMavenPr...
.getMavenProject().getBasedir();
1,814,001
public void commit() {<NEW_LINE>final AbstractWorldUpdater<W, A> wrapped = wrappedWorldView();<NEW_LINE>// Our own updates should apply on top of the updates we're stacked on top, so our deletions<NEW_LINE>// may kill some of "their" updates, and our updates may review some of the account "they"<NEW_LINE>// deleted.<NE...
).forEach(existing::setStorageValue);
262,126
public OverallVolume unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>OverallVolume overallVolume = new OverallVolume();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
().unmarshall(context));
475,570
/*<NEW_LINE>* Ends the process tracing span and the scope of that span.<NEW_LINE>*/<NEW_LINE>private void endProcessTracingSpan(Context processSpanContext, Signal<Void> signal) {<NEW_LINE>if (processSpanContext == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Optional<Object> spanScope = processSpanContext.getData(SCOPE...
error(Messages.EVENT_PROCESSOR_RUN_END, exception);
1,030,618
private void createFlowRunner(final ExecutableFlow flow) throws ExecutorManagerException {<NEW_LINE>// Prepare the flow with project dependencies.<NEW_LINE>this.flowPreparer.setup(flow);<NEW_LINE>// Setup flow watcher<NEW_LINE>FlowWatcher watcher = null;<NEW_LINE>final ExecutionOptions options = flow.getExecutionOption...
this.alerterHolder, commonMetrics, execMetrics);
556,804
public VolumeStatusEvent unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>VolumeStatusEvent volumeStatusEvent = new VolumeStatusEvent();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetD...
().unmarshall(context));
1,003,156
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {<NEW_LINE>if (mFeaturedImageRetryOverlay.getVisibility() == View.VISIBLE) {<NEW_LINE>menu.add(0, RETRY_FEATURED_IMAGE_UPLOAD_MENU_ID, 0, getString<MASK><NEW_LINE>menu.add(0, REMOVE_FEATURED_IMAGE_UPLOAD_MENU_ID, 0, getStrin...
(R.string.post_settings_retry_featured_image));
590,193
public void initializeListeners(String name) {<NEW_LINE>List<ListenerConfig> listenerConfigs = getReplicatedMapConfig(name).getListenerConfigs();<NEW_LINE>for (ListenerConfig listenerConfig : listenerConfigs) {<NEW_LINE>EntryListener listener = null;<NEW_LINE>if (listenerConfig.getImplementation() != null) {<NEW_LINE>l...
), listenerConfig.getClassName());