idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,223,808
public DoubleArray nodeSensitivity(PiecewisePolynomialResultsWithSensitivity pp, double xKey) {<NEW_LINE>ArgChecker.notNull(pp, "null pp");<NEW_LINE>ArgChecker.isFalse(Double.isNaN(xKey), "xKey containing NaN");<NEW_LINE>ArgChecker.isFalse(Double.isInfinite(xKey), "xKey containing Infinity");<NEW_LINE>if (pp.getDimensi...
res = a.row(0);
1,680,476
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>scrollPane = new javax.swing.JScrollPane();<NEW_LINE>textArea = <MASK><NEW_LINE>label = new javax.swing.JLabel();<NEW_LINE>textArea.setColumns(20);<NEW_LINE>textArea.setRows(5);<NE...
new javax.swing.JTextArea();
694,193
public static void dispatchScroll(Widget aWidget, int aDevice, boolean aFocused, float aX, float aY) {<NEW_LINE>Device device = devices.get(aDevice);<NEW_LINE>if (device == null) {<NEW_LINE>device = new Device(aDevice);<NEW_LINE>devices.put(aDevice, device);<NEW_LINE>}<NEW_LINE>device.mPreviousWidget = aWidget;<NEW_LIN...
aFocused, MotionEvent.ACTION_SCROLL, true);
1,455,816
public void initialize() throws IOException {<NEW_LINE>if (this.compliance == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.releaseInHex = Integer.toHexString(Integer.parseInt(this.compliance)).toUpperCase();<NEW_LINE>// $NON-NLS-1$ //$NON-NLS-2$<NEW_LINE>Path filePath = this.jdkHome.toPath().resolve<MASK><NEW_LINE...
("lib").resolve("ct.sym");
675,589
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.functionKey, convLabelName("Function Key"));<NEW_LI...
, convLabelName("Function Key"), 64);
518,964
private void search(String text) {<NEW_LINE>if (text.isEmpty()) {<NEW_LINE>current_search = "";<NEW_LINE>current_search_index = 0;<NEW_LINE>log.setSelection(log.<MASK><NEW_LINE>} else {<NEW_LINE>if (text.equals("\n")) {<NEW_LINE>if (!current_search.isEmpty()) {<NEW_LINE>current_search_index++;<NEW_LINE>}<NEW_LINE>} els...
getText().length());
1,483,513
public AnalyzeIDResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AnalyzeIDResult analyzeIDResult = new AnalyzeIDResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
().unmarshall(context));
736,306
public int readBuffer(int deviceIndex, long bufferId, long srcOffset, long bytes, byte[] value, long dstOffset, int[] waitEvents, ProfilerTransfer profilerTransfer) {<NEW_LINE>SPIRVLevelZeroCommandQueue spirvCommandQueue = commandQueues.get(deviceIndex);<NEW_LINE>LevelZeroCommandList commandList = spirvCommandQueue.get...
srcOffset, null, 0, null);
723,573
public synchronized byte[] exportCollection() {<NEW_LINE>// returns null if the collection is empty<NEW_LINE>// experimental; supervise CPU load<NEW_LINE>sort();<NEW_LINE>// uniq();<NEW_LINE>// trim();<NEW_LINE>// on case the collection is sorted<NEW_LINE>assert this.sortBound == this.chunkcount;<NEW_LINE>assert size()...
setCol(exp_chunkcount, this.chunkcount);
734,513
public void call(FullAccessIntArrPointer dst, int stride, ReadOnlyIntArrPointer above, ReadOnlyIntArrPointer left) {<NEW_LINE>PositionableIntArrPointer pLeft = PositionableIntArrPointer.makePositionable(left);<NEW_LINE>PositionableIntArrPointer pAbove = PositionableIntArrPointer.makePositionable(above);<NEW_LINE>final ...
short K = pLeft.getAndInc();
1,132,776
public final static <T> Stream<Streamable<T>> windowByTime(final Stream<T> stream, final long time, final TimeUnit t) {<NEW_LINE>final Iterator<T> it = stream.iterator();<NEW_LINE>final long toRun = t.toNanos(time);<NEW_LINE>return Streams.stream(new Iterator<Streamable<T>>() {<NEW_LINE><NEW_LINE>long start = System.na...
add(it.next());
1,391,777
static Map<String, ?> renderAll(MetricResults metricResults) {<NEW_LINE>Map<String, Object> metrics = new HashMap<>();<NEW_LINE>MetricQueryResults metricQueryResults = metricResults.allMetrics();<NEW_LINE>for (MetricResult<Long> metricResult : metricQueryResults.getCounters()) {<NEW_LINE>metrics.put(renderName(metricRe...
getAttempted().getValue());
1,566,035
private void passThrough(BackupStorageMessage pmsg) {<NEW_LINE>BackupStorageVO vo = dbf.findByUuid(pmsg.getBackupStorageUuid(), BackupStorageVO.class);<NEW_LINE>if (vo == null && allowedMessageAfterDeletion.contains(pmsg.getClass())) {<NEW_LINE>BackupStorageEO eo = dbf.findByUuid(pmsg.<MASK><NEW_LINE>vo = ObjectUtils.n...
getBackupStorageUuid(), BackupStorageEO.class);
183,639
private boolean resetVMSSHKeyInternal(Long vmId, String sshPublicKeys, String keypairnames) throws ResourceUnavailableException, InsufficientCapacityException {<NEW_LINE>Long userId = CallContext.current().getCallingUserId();<NEW_LINE>VMInstanceVO vmInstance = _vmDao.findById(vmId);<NEW_LINE>VMTemplateVO template = _te...
debug("Vm " + vmInstance + " is rebooted successfully as a part of SSH Key reset");
156,822
public List<ImportJob> searchJobs(@RequestParam Map<String, String> queryMap) {<NEW_LINE>// Parse params from queryMap.<NEW_LINE>String name = null;<NEW_LINE>Map<String, String> labels = new HashMap<>();<NEW_LINE>for (String paramKey : queryMap.keySet()) {<NEW_LINE>if ("name".equals(paramKey)) {<NEW_LINE><MASK><NEW_LIN...
name = queryMap.get("name");
292,280
protected RunContentDescriptor runInDebugger(@NotNull BazelTestLaunchState launcher, @NotNull ExecutionEnvironment env) throws ExecutionException {<NEW_LINE>// Start process and create console.<NEW_LINE>final ExecutionResult executionResult = launcher.execute(<MASK><NEW_LINE>final Connector connector = new Connector(ex...
env.getExecutor(), this);
1,396,559
private void buildContext(ASTNode astNode, ASTNode astNodeParent, CompilationUnitDeclaration compilationUnitDeclaration, Binding qualifiedBinding, Scope scope) {<NEW_LINE>InternalCompletionContext context = new InternalCompletionContext();<NEW_LINE>if (this.requestor.isExtendedContextRequired()) {<NEW_LINE>context.setE...
context, scope, astNode, astNodeParent);
700,732
private void startPlay(String linkStreamId) {<NEW_LINE>String userId = String.valueOf(new Random().nextInt(10000));<NEW_LINE>String playURL = URLUtils.generatePlayUrl(linkStreamId, userId, 0);<NEW_LINE>if (mLivePlayer == null) {<NEW_LINE>mLivePlayer = new V2TXLivePlayerImpl(LivePKAnchorActivity.this);<NEW_LINE>mLivePla...
" msg-" + msg + " info-" + extraInfo);
1,214,823
public CancelElasticsearchServiceSoftwareUpdateResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CancelElasticsearchServiceSoftwareUpdateResult cancelElasticsearchServiceSoftwareUpdateResult = new CancelElasticsearchServiceSoftwareUpdateResult();<NEW_LINE>int originalDepth = context.getCurr...
().unmarshall(context));
212,907
protected void handle(final InstantiateVolumeOnPrimaryStorageMsg msg) {<NEW_LINE>if (msg.getDestHost() == null) {<NEW_LINE>String hostUuid = getAvailableHostUuidForOperation();<NEW_LINE>if (hostUuid == null) {<NEW_LINE>throw new OperationFailureException(operr("the shared mount point primary storage[uuid:%s, name:%s] c...
bus.reply(msg, reply);
370,322
protected RegionClient handleMetaZnode(final byte[] data) {<NEW_LINE>if (data[0] != MAGIC) {<NEW_LINE>LOG.error("Malformed META region meta-data in " + Bytes.pretty(data) + ", invalid leading magic number: " + data[0]);<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final int metadata_length = Bytes.getInt(data, 1);<NEW_LIN...
.getServer().getPort();
1,102,827
public void computeConversion(Scope scope, TypeBinding runtimeTimeType, TypeBinding compileTimeType) {<NEW_LINE>if (runtimeTimeType == null || compileTimeType == null)<NEW_LINE>return;<NEW_LINE>if (this.binding != null && this.binding.isValidBinding()) {<NEW_LINE>TypeBinding originalType = null;<NEW_LINE>if ((this.bits...
computeConversion(scope, runtimeTimeType, compileTimeType);
690,050
final GetRateBasedStatementManagedKeysResult executeGetRateBasedStatementManagedKeys(GetRateBasedStatementManagedKeysRequest getRateBasedStatementManagedKeysRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRateBasedStatementManagedKeysRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,313,450
public boolean onPrepareOptionsMenu(Menu menu) {<NEW_LINE>MenuItem closeIssue = menu.findItem(R.id.closeIssue);<NEW_LINE>MenuItem lockIssue = menu.findItem(R.id.lockIssue);<NEW_LINE>MenuItem milestone = menu.findItem(R.id.milestone);<NEW_LINE>MenuItem labels = menu.findItem(R.id.labels);<NEW_LINE>MenuItem assignees = m...
).isRepoOwner() || isCollaborator);
1,502,179
public void appendAnnotationValue(IAnnotation annotation, Object value, int valueKind, long flags) throws JavaModelException {<NEW_LINE>// Note: To be bug-compatible with Javadoc from Java 5/6/7, we currently don't escape HTML tags in String-valued annotations.<NEW_LINE>if (value instanceof Object[]) {<NEW_LINE>fBuilde...
name.substring(lastDot + 1);
124,993
private void handleCreateImageRampup(final HttpServletRequest req, final HttpServletResponse resp, final Session session) throws ServletException, IOException {<NEW_LINE>try {<NEW_LINE>final String jsonPayload = HttpRequestUtils.getBody(req);<NEW_LINE>final ImageRampupPlanRequestDTO imageRampupPlanRequest = this.conver...
log.error("Exception while creating image rampup plan", e);
258,994
public Long countWithJobWithPath(String job, String... paths) throws Exception {<NEW_LINE>EntityManager em = this.entityManagerContainer(<MASK><NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Long> cq = cb.createQuery(Long.class);<NEW_LINE>Root<Item> root = cq.from(Item.class);<NEW_LINE>Pr...
).get(Item.class);
1,141,660
private void verifyAndCachePurchase(Purchase purchase) {<NEW_LINE>String purchaseData = purchase.getOriginalJson();<NEW_LINE>String dataSignature = purchase.getSignature();<NEW_LINE>try {<NEW_LINE>JSONObject purchaseJsonObject = new JSONObject(purchaseData);<NEW_LINE>String productId = purchaseJsonObject.getString(Cons...
reportBillingError(Constants.BILLING_ERROR_OTHER_ERROR, e);
518,549
public static void main(String[] arg) {<NEW_LINE>if (arg.length % 4 != 0 || arg.length < 4) {<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Value[][] values = new Value[arg.length / 4][4];<NEW_LINE>for (int i = 0; i < arg.length; i++) {<NEW_LINE>Value value = new Value();<NEW_LINE>if (arg[i].equals("")) {<NEW_LI...
System.out.println("Must have modulo 4 args, at least 4");
1,301,155
private void populateDataFields(List<Either<Command, CodeAction>> codeActions) {<NEW_LINE>ResponseStore.ResponseItem<Either<ChangeCorrectionProposal, CodeActionProposal>> response = codeActionStore.createResponse();<NEW_LINE>List<Either<ChangeCorrectionProposal, CodeActionProposal>> proposals = new ArrayList<>();<NEW_L...
(proposals.size()));
724,159
public ApplicationConfigurationAndroid createAndroidV2Configuration(DistributionServiceConfig distributionServiceConfig, PreDistributionTrlValueMappingProvider trlValueMappingProvider) throws UnableToLoadFileException {<NEW_LINE>RiskCalculationParameters.Builder riskCalculationParameterBuilder = YamlLoader.loadYamlInto...
())).build();
589,010
private boolean isPackageAccessAllowed(Var var, Node name) {<NEW_LINE>StaticSourceFile varSrc = var.getSourceFile();<NEW_LINE><MASK><NEW_LINE>if (varSrc == null && refSrc == null) {<NEW_LINE>// If the source file of either var or name is unavailable, conservatively assume they belong<NEW_LINE>// to different packages.<...
StaticSourceFile refSrc = name.getStaticSourceFile();
125,441
final AssociateOpsItemRelatedItemResult executeAssociateOpsItemRelatedItem(AssociateOpsItemRelatedItemRequest associateOpsItemRelatedItemRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateOpsItemRelatedItemRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,359,846
public static DescribeSlowLogRecordsResponse unmarshall(DescribeSlowLogRecordsResponse describeSlowLogRecordsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSlowLogRecordsResponse.setRequestId(_ctx.stringValue("DescribeSlowLogRecordsResponse.RequestId"));<NEW_LINE>describeSlowLogRecordsResponse.setStartTime(_ctx...
(_ctx.integerValue("DescribeSlowLogRecordsResponse.PageSize"));
1,634,153
private static List<Integer> populateAllEOptions() {<NEW_LINE>List<Integer> allEOptions = new ArrayList<Integer>();<NEW_LINE>allEOptions.add(OptionNumberRegistry.IF_MATCH);<NEW_LINE>allEOptions.add(OptionNumberRegistry.ETAG);<NEW_LINE>allEOptions.add(OptionNumberRegistry.IF_NONE_MATCH);<NEW_LINE>allEOptions.add(OptionN...
allEOptions.add(OptionNumberRegistry.SIZE1);
88,618
private CodegenMethod dereferenceRemoveFromCollCodegen(CodegenMethod parent, CodegenNamedMethods namedMethods, CodegenClassScope classScope) {<NEW_LINE>CodegenMethod getComparable = getComparableWMultiKeyCodegen(forge.getSpec().getCriteria(), sorted, namedMethods, classScope);<NEW_LINE>CodegenMethod method = parent.mak...
blockEnd().decrement(size);
749,746
protected void createUI() {<NEW_LINE>setLayout(new BorderLayout());<NEW_LINE>ViewComponentPlugin plugin = getViewComponentPlugin();<NEW_LINE>view = new View(<MASK><NEW_LINE>view.setPinned(true);<NEW_LINE>view.setSyncronizing(false);<NEW_LINE>view.createUI();<NEW_LINE>view.setShowViewBanner(false);<NEW_LINE>add(view);<N...
plugin, editorKit.getWorkspace());
155,046
default SparseMatrix toMatrix() {<NEW_LINE>int nz = nz();<NEW_LINE>int ncol = ncol();<NEW_LINE>int[] pos = new int[ncol];<NEW_LINE>int[] colIndex <MASK><NEW_LINE>for (int i = 0; i < ncol; i++) {<NEW_LINE>colIndex[i + 1] = colIndex[i] + nz(i);<NEW_LINE>}<NEW_LINE>int nrow = size();<NEW_LINE>int[] rowIndex = new int[nz];...
= new int[ncol + 1];
119,881
public List<Object> fetchValues(SourceLookup lookup, List<Object> includedValues) throws IOException {<NEW_LINE>List<Object> nestedEntriesToReturn = new ArrayList<>();<NEW_LINE>Map<String, Object> filteredSource = new HashMap<>();<NEW_LINE>Map<String, Object> stub = createSourceMapStub(filteredSource);<NEW_LINE>List<?>...
nestedEntry = new HashMap<>();
1,601,024
final GetQuantumTaskResult executeGetQuantumTask(GetQuantumTaskRequest getQuantumTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getQuantumTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
false), new GetQuantumTaskResultJsonUnmarshaller());
194,989
public final void navigate(final Form form, final Input submit) {<NEW_LINE>try {<NEW_LINE>EncogLogging.log(EncogLogging.LEVEL_INFO, "Posting a form");<NEW_LINE>InputStream is;<NEW_LINE>URLConnection connection = null;<NEW_LINE>OutputStream os;<NEW_LINE>URL targetURL;<NEW_LINE>if (form.getMethod() == Form.Method.GET) {<...
formData.add(name, value);
1,076,914
public DeleteHsmResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteHsmResult deleteHsmResult = new DeleteHsmResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
class).unmarshall(context));
169,597
public void accumulate(int index, GradPair gradPair) {<NEW_LINE>if (numClass == 2 || multiClassMultiTree) {<NEW_LINE>BinaryGradPair binary = (BinaryGradPair) gradPair;<NEW_LINE>gradients[index] += binary.getGrad();<NEW_LINE>hessians[index] += binary.getHess();<NEW_LINE>} else if (!fullHessian) {<NEW_LINE>MultiGradPair ...
] hess = multi.getHess();
1,589,848
public void run() {<NEW_LINE>CollectionDb db = CollectionDbManager.get().getCollectionDb(collectionId);<NEW_LINE>String currentRevision = String.valueOf(db.albumCurrentRevision(album.getName(), album.getArtist().getName(), ""));<NEW_LINE>Playlist playlist = Playlist.get(collectionId + "_" + album.getCacheKey() + "_" + ...
).getName(), "");
23,001
public void handleMessage(int group, byte cmd1, Msg msg, DeviceFeature f, String fromPort) {<NEW_LINE>if (msg.isExtended()) {<NEW_LINE>try {<NEW_LINE>// see iMeter developer notes 2423A1dev-072013-en.pdf<NEW_LINE>int b7 = msg.getByte("userData7") & 0xff;<NEW_LINE>int b8 = msg.getByte("userData8") & 0xff;<NEW_LINE>int w...
| (b11 << 8) | b12;
651,791
private void consolidateEntry(final int entryIndex) {<NEW_LINE>int previousVersionIndex = getPreviousVersionIndex(entryIndex);<NEW_LINE>if (previousVersionIndex == 0)<NEW_LINE>return;<NEW_LINE>if (getPreviousVersionIndex(previousVersionIndex) != 0) {<NEW_LINE>throw new IllegalStateException("Encountered Previous Versio...
insertedSlotIndex = Integer.bitCount(slotsBelowBitNumber);
318,356
static void emitFromNativeConversion(AsmBuilder builder, SkinnyMethodAdapter mv, FromNativeType fromNativeType, Class nativeClass) {<NEW_LINE>// If there is a result converter, retrieve it and put on the stack<NEW_LINE>FromNativeConverter fromNativeConverter = fromNativeType.getFromNativeConverter();<NEW_LINE>if (fromN...
, builder.getFromNativeConverterField(fromNativeConverter));
241,647
public boolean generateSupport(TrackerWebPageRequest request, TrackerWebPageResponse response) throws IOException {<NEW_LINE>String url = request.getURL();<NEW_LINE>if (url.contains("favicon.ico")) {<NEW_LINE>try {<NEW_LINE>InputStream stream = getClass().getClassLoader().getResourceAsStream("com/biglybt/ui/icons/favic...
].toLowerCase(Locale.US);
939,906
public String validateLastPremiumDate(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) {<NEW_LINE>if (isCalloutActive() || value == null) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>I_HR_EmployeeInsurance employeeInsurance = GridTabWrapper.<MASK><NEW_LINE>Timestamp payDate = employeeInsurance.g...
create(mTab, I_HR_EmployeeInsurance.class);
254,700
private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, jnr.ffi.NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, Nati...
TypeAlias.blksize_t, NativeType.SINT);
436,414
protected void serviceStart() throws Exception {<NEW_LINE>stateMonitor = new Thread(new Runnable() {<NEW_LINE><NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>while (!stopped.get() && !Thread.interrupted()) {<NEW_LINE>AppState state = getInternalState();<NEW_LINE>try {<N...
.getApplicationId(), "lack of resources: memory or vCores are not enough for the request by worker"));
67,061
public boolean enterTernaryNode(TernaryNode ternaryNode) {<NEW_LINE>// ternaryNode.getStart() points at '?'<NEW_LINE>int question = ternaryNode.getStart();<NEW_LINE>int actualStart = getNodeStart(ternaryNode);<NEW_LINE>// FIXME If the true or false expression is a function node, the offsets are wrong!<NEW_LINE>// We ty...
.getTrueExpression().getFinish();
623,317
public static DescribeDomainExtensionsResponse unmarshall(DescribeDomainExtensionsResponse describeDomainExtensionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainExtensionsResponse.setRequestId(_ctx.stringValue("DescribeDomainExtensionsResponse.RequestId"));<NEW_LINE>List<DomainExtension> domainExtensions...
+ "].ServerCertificates[" + j + "].EncryptionAlgorithm"));
335,042
private static <// for existence in another one using 'deep' comparison.<NEW_LINE>K, V> boolean compareUnorderedCollection(Collection<K> col1, Collection<V> col2, List<String> path, Deque<DualKey> toCompare, Set<DualKey> visited, Map<String, Comparator<?>> comparatorByPropertyOrField, TypeComparators comparatorByType) ...
() && comparatorByType.isEmpty();
830,810
public <T> T newInstance(Class<T> type) {<NEW_LINE>SerializationException ex = null;<NEW_LINE>try {<NEW_LINE>return super.newInstance(type);<NEW_LINE>} catch (SerializationException se) {<NEW_LINE>ex = se;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Constructor<?> <MASK><NEW_LINE>if (constructor == null) {<NEW_LINE>constructor ...
constructor = CONSTRUCTOR_CACHE.get(type);
558,988
public String request(@QueryParam("signTxRequest") String signTxRequest, @QueryParam("finalizeResponses") List<String> finalizeResponses, @QueryParam("gateway") String gateway, @QueryParam("signTxResponses") List<String> signTxResponses) throws InvalidProtocolBufferException {<NEW_LINE>if (finalizeResponses.size() != C...
getWalletId(), addresses, gateway);
1,506,968
public Void call() {<NEW_LINE>if (timeouts.containsKey(IMPLICIT)) {<NEW_LINE>try {<NEW_LINE>getDriver().manage().timeouts().implicitlyWait(Duration.ofMillis(((Number) timeouts.get(IMPLICIT)).longValue()));<NEW_LINE>} catch (ClassCastException ex) {<NEW_LINE>throw new WebDriverException("Illegal (non-numeric) timeout va...
.get(SCRIPT), ex);
855,574
public URL toServer(FileObject projectFile) {<NEW_LINE>Project p = FileOwnerQuery.getOwner(projectFile);<NEW_LINE>if (p != null) {<NEW_LINE>Pair pair = deployedApps.get(p);<NEW_LINE>if (pair != null) {<NEW_LINE>// NOI18N<NEW_LINE>String // NOI18N<NEW_LINE>path = pair.webContextRoot + (pair.webContextRoot.equals("/") ? ...
"http://localhost:" + getPort() + path);
399,682
public Signer unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>Signer signer = new Signer();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>while (true) {<NEW_LINE>XMLEvent xmlEvent = context.nextEvent();...
int originalDepth = context.getCurrentDepth();
977,631
protected DDlogExpression caseExpression(Node node, List<DDlogExpression> comparisons, List<DDlogExpression> results, @Nullable DDlogExpression defaultValue) {<NEW_LINE>assert comparisons.size() == results.size();<NEW_LINE>// Compute result type<NEW_LINE>List<DDlogType> types = Linq.map(results, DDlogExpression::getTyp...
resultType = DDlogType.reduceType(types);
1,495,903
public void computeJacobian(Point2D_F64 x1, Point2D_F64 x2) {<NEW_LINE>J.data[0] = -H.get(1, 0) + x2.y * H.get(2, 0);<NEW_LINE>J.data[1] = -H.get(1, 1) + x2.y * H.get(2, 1);<NEW_LINE>J.data[2] = 0;<NEW_LINE>J.data[3] = x1.x * H.get(2, 0) + x1.y * H.get(2, 1) + H.get(2, 2);<NEW_LINE>J.data[4] = H.get(0, 0) - x2.x * H.ge...
J.data[7] = 0;
184,490
EmbeddedActiveMQ embeddedActiveMq(org.apache.activemq.artemis.core.config.Configuration configuration, JMSConfiguration jmsConfiguration, ObjectProvider<ArtemisConfigurationCustomizer> configurationCustomizers) throws Exception {<NEW_LINE>for (JMSQueueConfiguration queueConfiguration : jmsConfiguration.getQueueConfigur...
.addRoutingType(RoutingType.MULTICAST));
1,327,962
public static void motan2XmlCommonClientDemo(CommonHandler client) throws Throwable {<NEW_LINE>System.out.println(client.call("hello", new Object[] { "a" }, String.class));<NEW_LINE>User user = new User(1, "AAA");<NEW_LINE>System.out.println(user);<NEW_LINE>user = (User) client.call("rename", new Object[] { user, "BBB"...
System.out.println(user);
781,655
public void registerBeansForRoot(BeanDefinitionRegistry registry, RepositoryConfigurationSource config) {<NEW_LINE>super.registerBeansForRoot(registry, config);<NEW_LINE>Object source = config.getSource();<NEW_LINE>registerLazyIfNotAlreadyRegistered(() -> new RootBeanDefinition(EntityManagerBeanDefinitionRegistrarPostP...
class.getName(), source);
1,721,746
public BasicResponse updateParam(@Valid @RequestBody NodeParamController.UpdateParamRequest request) {<NEW_LINE>experimentService.secureGetNode(request.experimentId, request.nodeId);<NEW_LINE>List<NodeParam> nodeParamList = nodeParamRepository.findByExperimentIdAndNodeId(request.experimentId, request.nodeId);<NEW_LINE>...
String key = nodeParam.getKey();
466,141
public int readKfIntraModeSub(int miCol, int miRow, int blSz, VPXBooleanDecoder decoder, DecodingContext c) {<NEW_LINE>// Frame based<NEW_LINE>boolean availAbove = miRow > 0;<NEW_LINE>// Tile based<NEW_LINE>boolean availLeft = miCol > c.getMiTileStartCol();<NEW_LINE>int[] aboveIntraModes = c.getAboveModes();<NEW_LINE>i...
probs[mode0][leftMode]);
1,390,266
public EntityPlayerActionPack mount(boolean onlyRideables) {<NEW_LINE>// test what happens<NEW_LINE>List<Entity> entities;<NEW_LINE>if (onlyRideables) {<NEW_LINE>entities = player.level.getEntities(player, player.getBoundingBox().inflate(3.0D, 1.0D, 3.0D), e -> e instanceof Minecart || <MASK><NEW_LINE>} else {<NEW_LINE...
e instanceof Boat || e instanceof AbstractHorse);
1,769,130
protected boolean initMutiFragment(List<QMUIFragment> fragments) {<NEW_LINE>if (fragments.size() == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean disableSwipeBack = getIntent().getIntExtra(QMUIFragmentActivity.QMUI_MUTI_START_INDEX, 0) > 0;<NEW_LINE>if (fragments.size() == 1) {<NEW_LINE>QMUIFragment fragment ...
.getClass().getSimpleName();
1,634,158
protected void removeIgnorableTypes(SerializationConfig config, BeanDescription beanDesc, List<BeanPropertyDefinition> properties) {<NEW_LINE>AnnotationIntrospector intr = config.getAnnotationIntrospector();<NEW_LINE>HashMap<Class<?>, Boolean> ignores = new HashMap<Class<?>, Boolean>();<NEW_LINE>Iterator<BeanPropertyDe...
AnnotatedMember accessor = property.getAccessor();
1,693,366
private void handleServiceTypeProcesses(CompilerPlugin plugin) {<NEW_LINE>// Get the list of endpoint of that this particular compiler plugin is interested in.<NEW_LINE>SupportedResourceParamTypes resParamTypes = plugin.getClass().getAnnotation(SupportedResourceParamTypes.class);<NEW_LINE>if (resParamTypes == null) {<N...
serviceListenerMap.put(plugin, listenerType);
805,934
public GetCurrentUserResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetCurrentUserResult getCurrentUserResult = new GetCurrentUserResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
JsonToken token = context.getCurrentToken();
1,289,036
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,621,367
public NetworkModule createNetworkModule(URI brokerUri, MqttConnectOptions options, String clientId) throws MqttException {<NEW_LINE>String host = brokerUri.getHost();<NEW_LINE>// -1 if not defined<NEW_LINE>int port = brokerUri.getPort();<NEW_LINE>if (port == -1) {<NEW_LINE>port = 8883;<NEW_LINE>}<NEW_LINE>String path ...
setSSLHostnameVerifier(options.getSSLHostnameVerifier());
1,617,772
public DescribeCommunicationsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeCommunicationsResult describeCommunicationsResult = new DescribeCommunicationsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentPar...
)).unmarshall(context));
1,791,056
public void toJson(Object bean, int depth, JsonResult ret) {<NEW_LINE>if (checkDepth(depth--, ret)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>ret.addChar('{');<NEW_LINE>boolean first = true;<NEW_LINE>for (int i = 0; i < fields.length; i++) {<NEW_LINE>Object value = methods[i].invoke(bean, NULL_ARGS);<NEW_LI...
toJson(value, depth, ret);
985,106
public boolean delete(Supplier<JournalContext> journalContext, AlluxioURI uri, boolean checkNestedMount) {<NEW_LINE><MASK><NEW_LINE>LOG.info("Unmounting {}", path);<NEW_LINE>if (path.equals(ROOT)) {<NEW_LINE>LOG.warn("Cannot unmount the root mount point.");<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>try (LockResource r...
String path = uri.getPath();
175,671
final PutIntegrationResponseResult executePutIntegrationResponse(PutIntegrationResponseRequest putIntegrationResponseRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putIntegrationResponseRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
359,226
public final PropertyStreamSelectorContext propertyStreamSelector() throws RecognitionException {<NEW_LINE>PropertyStreamSelectorContext _localctx = new PropertyStreamSelectorContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(27...
enterRule(_localctx, 402, RULE_propertyStreamSelector);
1,306,079
public void endVisit(ExplicitConstructorCall x, BlockScope scope) {<NEW_LINE>try {<NEW_LINE>SourceInfo info = makeSourceInfo(x);<NEW_LINE>JConstructor ctor = (JConstructor) typeMap.get(x.binding);<NEW_LINE>JExpression trueQualifier = makeThisRef(info);<NEW_LINE>JMethodCall call = new JMethodCall(info, trueQualifier, ct...
assert (x.qualification == null);
1,187,861
public void onReceive(final Context context, Intent intent) {<NEW_LINE>// am broadcast -a ru.meefik.linuxdeploy.BROADCAST_ACTION --user 0 --esn "hide"<NEW_LINE>if (intent.hasExtra("hide")) {<NEW_LINE>hideNotification(context);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// am broadcast -a ru.meefik.linuxdeploy.BROADCAST_ACTIO...
mainIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
429,340
protected void startInner() {<NEW_LINE>initialize();<NEW_LINE>// Configure the service<NEW_LINE>this.workerPool = <MASK><NEW_LINE>this.bootstrap = new ServerBootstrap(new NioServerSocketChannelFactory(Executors.newCachedThreadPool(), workerPool));<NEW_LINE>this.bootstrap.setOption("backlog", this.coordinatorConfig.getN...
(ThreadPoolExecutor) Executors.newCachedThreadPool();
775,807
private double calculateMaxAcceleration() {<NEW_LINE>// End check at first recovery device deployment<NEW_LINE>double endTime = Double.MAX_VALUE;<NEW_LINE>FlightDataBranch branch = this.getBranch(0);<NEW_LINE>for (FlightEvent event : branch.getEvents()) {<NEW_LINE>if (event.getType() == FlightEvent.Type.RECOVERY_DEVICE...
a = acceleration.get(i);
202,103
private boolean addJsr311ServerLibraryApi(Project project) {<NEW_LINE>WLServerLibrarySupport support = getLibrarySupport();<NEW_LINE>if (support == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Set<WLServerLibrary> libraries = support.getDeployedLibraries();<NEW_LINE>for (WLServerLibrary library : libraries) {<NEW...
apiLib = ServerLibraryFactory.createServerLibrary(library);
1,013,073
public Context createContext() throws DurableDataLogException {<NEW_LINE>val serviceConfig = getServiceConfig();<NEW_LINE>val containerConfig = getCommandArgs().getState().getConfigBuilder().build().getConfig(ContainerConfig::builder);<NEW_LINE>val bkConfig = getCommandArgs().getState().getConfigBuilder().include(BookK...
getState().getExecutor());
47,393
private void drawOn(JPanel panel, String value) {<NEW_LINE>List<Image> images = new ArrayList<>();<NEW_LINE>value = value.toUpperCase(Locale.ENGLISH);<NEW_LINE>for (int i = 0; i < value.length(); i++) {<NEW_LINE>char symbol = value.charAt(i);<NEW_LINE>Image image = ManaSymbols.getSizedManaSymbol(String.valueOf(symbol))...
).replace("X", "{X}");
848,469
final DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult executeDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest describeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest) {<NEW_LINE>ExecutionContext ex...
addHandlerContext(HandlerContextKey.SERVICE_ID, "EC2");
1,701,210
private static String[] splitDescriptor(String desc) {<NEW_LINE>List<String> arr = new ArrayList<>();<NEW_LINE>int lastPos = 0;<NEW_LINE>F: for (int i = 0; i < desc.length(); i++) {<NEW_LINE>char c = desc.charAt(i);<NEW_LINE>switch(c) {<NEW_LINE>case '(':<NEW_LINE>lastPos = i + 1;<NEW_LINE>break;<NEW_LINE>case ')':<NEW...
(lastPos, i + 1));
1,788,348
private void cutPersonNames(Wo subject) {<NEW_LINE>if (subject != null) {<NEW_LINE>if (StringUtils.isBlank(subject.getNickName())) {<NEW_LINE>subject.setNickName(subject.getCreatorName());<NEW_LINE>}<NEW_LINE>if (StringUtils.isNotEmpty(subject.getLatestReplyUser())) {<NEW_LINE>subject.setLatestReplyUserNickName(subject...
split("@")[0]);
678,431
protected CatalogEntityInfo.SysClusterConfigEntryPB modifyConfig(CatalogEntityInfo.SysClusterConfigEntryPB config) {<NEW_LINE>// Modify the blacklist.<NEW_LINE>CatalogEntityInfo.SysClusterConfigEntryPB.Builder configBuilder = CatalogEntityInfo.SysClusterConfigEntryPB.newBuilder(config);<NEW_LINE>// Use a TreeSet so we ...
compareTo(b.getHost());
1,569,193
final DeleteRepositoryPolicyResult executeDeleteRepositoryPolicy(DeleteRepositoryPolicyRequest deleteRepositoryPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteRepositoryPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,733,661
private void processRange(@Nonnull MarkupModelEx model, @Nonnull HighlightRange range) {<NEW_LINE>final TextRange base = range.getBase();<NEW_LINE>final TextRange changed = range.getChanged();<NEW_LINE>final int changedLength = changed.getEndOffset() - changed.getStartOffset();<NEW_LINE>model.processRangeHighlightersOv...
(marker, newStart, newEnd));
1,419,831
ASTNode clone0(AST target) {<NEW_LINE>SingleVariableDeclaration result = new SingleVariableDeclaration(target);<NEW_LINE>result.setSourceRange(getStartPosition(), getLength());<NEW_LINE>if (this.ast.apiLevel == AST.JLS2_INTERNAL) {<NEW_LINE>result.setModifiers(getModifiers());<NEW_LINE>} else {<NEW_LINE>result.modifier...
result.internalSetExtraDimensions(getExtraDimensions());
333,973
public void run() {<NEW_LINE>boolean sent = false;<NEW_LINE>boolean retried = false;<NEW_LINE>long startTS = System.currentTimeMillis();<NEW_LINE>for (int i = 0; i < config.getRetryCount(); ++i) {<NEW_LINE>ConnectionPool.SuroConnection connection = connectionPool.chooseConnection();<NEW_LINE>if (connection == null) {<N...
result = connection.send(messageSet);
713,490
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>file = getArguments().getParcelable(ARG_FILE);<NEW_LINE>share = getArguments().getParcelable(ARG_SHARE);<NEW_LINE>createShare = getArguments().getBoolean(ARG_CREATE_SHARE, false);<NEW_LINE>askForPassword = getArguments().getBoolean(ARG_ASK_FOR_PASSWORD,...
, this).setTitle(title);
953,674
protected void onFragmentCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>stateLayout.setEmptyText(R.string.no_search_results);<NEW_LINE>getLoadMore().initialize(getPresenter().getCurrentPage(), getPresenter().getPreviousTotal());<NEW_LINE>stateLayout.setOnReloadListener(this);<NEW_LINE>refre...
getPresenter().getUsers());
993,414
public SubjectAreaOMASAPIResponse<CategoryHierarchyLink> restoreCategoryHierarchyLink(String serverName, String userId, String guid) {<NEW_LINE>String restAPIName = "restoreCategoryHierarchyLink";<NEW_LINE>RESTCallToken token = restCallLogger.logRESTCall(serverName, userId, restAPIName);<NEW_LINE>SubjectAreaOMASAPIResp...
exception, auditLog, className, restAPIName);
1,180,882
private void onManageClick() {<NEW_LINE>final PropertiesPanel panel = new PropertiesPanel();<NEW_LINE>final PropertiesTable propTable;<NEW_LINE>propTable = new PropertiesTable(panel.labelForTable, PropertiesTable.PROPERTIES_COLUMNS, new String[] { PropertiesTableModel.COLUMN_NAME_VALUE });<NEW_LINE>panel.setPropertiesT...
(MercurialOptionsPanelController.class, "CTL_Properties_Action_OK"));
169,932
final DescribeFaqResult executeDescribeFaq(DescribeFaqRequest describeFaqRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeFaqRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<DescribeFaqRequest> reques...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
330,431
public void onUserLogin(int AD_Org_ID, int AD_Role_ID, int AD_User_ID) {<NEW_LINE>if (!isAvailable()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Don't start the printing client for System Administrators because we will clutter our migration scripts<NEW_LINE>if (AD_Role_ID == Env.CTXVALUE_AD_Role_ID_System) {<NEW_LINE>re...
).retrievePrinterConfig(hostKey, null);
538,643
public static void main(String[] args) {<NEW_LINE>// TODO Auto-generated method stub<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>System.out.println("Enter the no. of cylinders");<NEW_LINE>int c = sc.nextInt();<NEW_LINE>System.out.println("Enter the head position");<NEW_LINE>int h = sc.nextInt();<NEW_LINE>Sys...
int n = sc.nextInt();