idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
450,056
private void renderListBox() {<NEW_LINE>miniTable.renderAll();<NEW_LINE>List<ListItem> items = miniTable.getItems();<NEW_LINE>Iterator<ListItem<MASK><NEW_LINE>popup = new WEditorPopupMenu(true, false, false);<NEW_LINE>popup.addEventListener(Events.ON_OPEN, this);<NEW_LINE>Menuitem menu = (Menuitem) popup.getChildren()....
> it = items.iterator();
735,503
public static APIGetCandidateIsoForAttachingVmReply __example__() {<NEW_LINE>APIGetCandidateIsoForAttachingVmReply reply = new APIGetCandidateIsoForAttachingVmReply();<NEW_LINE>ImageInventory inv = new ImageInventory();<NEW_LINE>inv.setUuid(uuid());<NEW_LINE>ImageBackupStorageRefInventory ref = new ImageBackupStorageRe...
ImagePlatform.Linux.toString());
904,133
final UpdateSiteResult executeUpdateSite(UpdateSiteRequest updateSiteRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateSiteRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateSite");
1,697,989
private void updateModules() {<NEW_LINE>Set<ModuleContext> moduleContextSet = new HashSet<>();<NEW_LINE>for (Map.Entry<ModuleId, ModuleContext> moduleIdModuleContextEntry : moduleContextMap.entrySet()) {<NEW_LINE>ModuleId moduleId = moduleIdModuleContextEntry.getKey();<NEW_LINE>ModuleContext oldModuleContext = moduleId...
= this.packageManifest.descriptor();
1,282,626
public IBaseParameters triggerSubscription(List<IPrimitiveType<String>> theResourceIds, List<IPrimitiveType<String>> theSearchUrls, @IdParam IIdType theSubscriptionId) {<NEW_LINE>if (myDaoConfig.getSupportedSubscriptionTypes().isEmpty()) {<NEW_LINE>throw new PreconditionFailedException(Msg.code(22) + "Subscription proc...
subscriptionId, SystemRequestDetails.forAllPartition());
1,124,683
public JsonNode traceTransaction(String transactionHash) throws Exception {<NEW_LINE>logger.trace("trace_transaction({})", transactionHash);<NEW_LINE>byte[] hash = stringHexToByteArray(transactionHash);<NEW_LINE>TransactionInfo txInfo = this.receiptStore.getInMainChain(hash, this<MASK><NEW_LINE>if (txInfo == null) {<NE...
.blockStore).orElse(null);
1,575,729
public I_M_HU_PI retrieveDefaultLUOrNull(@CacheCtx final Properties ctx, final int adOrgId) {<NEW_LINE>return queryBL.createQueryBuilder(I_M_HU_PI.class, ctx, ITrx.TRXNAME_None).addOnlyActiveRecordsFilter().addOnlyContextClientOrSystem().addEqualsFilter(I_M_HU_PI.COLUMN_IsDefaultLU, true).addInArrayOrAllFilter(I_M_HU_P...
).firstOnly(I_M_HU_PI.class);
1,748,875
public ClassLoadingStrategy<ClassLoader> resolveStrategy(Class<?> mockedType, ClassLoader classLoader, boolean localMock) {<NEW_LINE>if (localMock) {<NEW_LINE>try {<NEW_LINE>Object privateLookup;<NEW_LINE>try {<NEW_LINE>privateLookup = privateLookupIn.invoke(null, mockedType, lookup);<NEW_LINE>} catch (InvocationTarget...
ClassLoadingStrategy.UsingLookup.of(codegenLookup);
635,930
public void onThreadCreated(WebSocket websocket, ThreadType threadType, Thread thread) {<NEW_LINE>final String identifier = getJDA().getIdentifierString();<NEW_LINE>final String guildId = guild.getId();<NEW_LINE>switch(threadType) {<NEW_LINE>case CONNECT_THREAD:<NEW_LINE>thread.setName(identifier + " AudioWS-ConnectThr...
identifier + " AudioWS-ReadThread (guildId: " + guildId + ')');
1,198,833
private void handleCoolant() {<NEW_LINE>double temp = heatCapacitor.getTemperature();<NEW_LINE>double heat = getBoilEfficiency() * (temp - HeatUtils.BASE_BOIL_TEMP) * heatCapacitor.getHeatCapacity();<NEW_LINE>long coolantHeated = 0;<NEW_LINE>if (!fluidCoolantTank.isEmpty()) {<NEW_LINE>double caseCoolantHeat = heat * wa...
Action.EXECUTE, AutomationType.INTERNAL);
1,529,467
private void updateFrameConfig(boolean updateResizable) {<NEW_LINE>if (frame == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Update window opacity if the frame is undecorated, translucency capable and not fullscreen<NEW_LINE>if (frame.isUndecorated() && frame.getGraphicsConfiguration().isTranslucencyCapable() && fra...
" - " + player.getName());
1,842,458
public Tensor[] merge(Tensor[][] gradients, int size) {<NEW_LINE>Tensor[] output = new Tensor[weights.length];<NEW_LINE>for (int i = 0; i < weights.length; i++) {<NEW_LINE>if (gradients[0][i] instanceof DenseVector) {<NEW_LINE>for (int j = 1; j < size; j++) {<NEW_LINE>gradients[0][i].intersectAndAddInPlace(gradients[j]...
) gradients[j][0];
838,509
private EndpointInfo createEndpointInfo(AbstractServiceFactoryBean serviceFactory, QName portName, PortInfoImpl portInfo) throws BusException {<NEW_LINE>EndpointInfo ei = null;<NEW_LINE>String address = portInfo.getAddress();<NEW_LINE>String bindingID = BindingID.getBindingID(portInfo.getBindingID());<NEW_LINE>Destinat...
new JaxWsSoapBindingConfiguration((JaxWsServiceFactoryBean) serviceFactory);
816,279
protected void validate() throws ContainerInitializationException {<NEW_LINE>List<String> errFields = new ArrayList<>();<NEW_LINE>if (requestTypeClass == null) {<NEW_LINE>errFields.add("request type class");<NEW_LINE>}<NEW_LINE>if (responseTypeClass == null) {<NEW_LINE>errFields.add("response type class");<NEW_LINE>}<N...
", ", errFields)), null);
1,151,588
public Set<Flow> bddMultipathConsistency(NetworkSnapshot snapshot, MultipathConsistencyParameters parameters) {<NEW_LINE>BDDPacket pkt = new BDDPacket();<NEW_LINE>// TODO add ignoreFilters parameter<NEW_LINE>boolean ignoreFilters = false;<NEW_LINE>BDDReachabilityAnalysisFactory bddReachabilityAnalysisFactory = getBddRe...
FlowDisposition.NO_ROUTE, FlowDisposition.NULL_ROUTED);
699,969
public void registerNode(RegisterNodeRequest request, StreamObserver<SimpleResponse> responseObserver) {<NEW_LINE>SimpleResponse.Builder response = SimpleResponse.newBuilder();<NEW_LINE>if (checkVersionError(request.getVersion(), responseObserver)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>updateRpcLastContact();<NEW_LINE...
onNext(response.build());
345,249
void runIfNotProcessed(BatchedTask updateTask) {<NEW_LINE>// if this task is already processed, it shouldn't execute other tasks with same batching key that arrived later,<NEW_LINE>// to give other tasks with different batching key a chance to execute.<NEW_LINE>if (updateTask.processed.get() == false) {<NEW_LINE>final ...
logger.trace("will process {}", task);
587,428
public void normalizeCifar(File fileName) {<NEW_LINE>DataSet result = new DataSet();<NEW_LINE>result.load(fileName);<NEW_LINE>if (!meanStdStored && train) {<NEW_LINE>uMean = Math.abs(uMean / numExamples);<NEW_LINE>uStd = Math.sqrt(uStd);<NEW_LINE>vMean = Math.abs(vMean / numExamples);<NEW_LINE>vStd = Math.sqrt(vStd);<N...
(i).setFeatures(newFeatures);
1,089,497
private IndexedMethod createMethod(String signature, IndexResult map) {<NEW_LINE>String clz = map.getValue(GroovyIndexer.CLASS_NAME);<NEW_LINE>String module = map.getValue(GroovyIndexer.IN);<NEW_LINE>if (clz == null) {<NEW_LINE>// Module method?<NEW_LINE>clz = module;<NEW_LINE>} else if ((module != null) && (module.len...
indexOf(';', typeIndex + 1);
1,566,385
public Object _reflectiveCallStrict(String className, Object instance, String methodName, ModuleLog L, Object... arguments) {<NEW_LINE>try {<NEW_LINE>Log.d(Countly.TAG, <MASK><NEW_LINE>if (arguments != null && arguments.length % 2 != 0) {<NEW_LINE>L.w("wrong arguments passed to reflectiveCallStrict");<NEW_LINE>return n...
"cls " + className + ", inst " + instance);
117,712
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>descTextArea = new javax.swing.JTextArea();<NEW_LINE>tableScrollPane = new javax.swing.JScrollPane();<NEW_LINE>table = new ...
12, 0, 0, 0);
1,316,200
/*<NEW_LINE>* @see com.sitewhere.grpc.service.DeviceEventManagementGrpc.<NEW_LINE>* DeviceEventManagementImplBase#addMeasurements(com.sitewhere.grpc.service.<NEW_LINE>* GAddMeasurementsRequest, io.grpc.stub.StreamObserver)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void addMeasurements(GAddMeasurementsRequest reque...
(new IDeviceMeasurementCreateRequest[0]));
1,374,698
protected V filterSingleObject(V featureVector) {<NEW_LINE>// generic casts here are not safe, but will do:<NEW_LINE>Norm<? <MASK><NEW_LINE>if (featureVector instanceof SparseNumberVector) {<NEW_LINE>// Special override, as it will be easily used inefficiently otherwise<NEW_LINE>if (EuclideanDistance.STATIC.equals(norm...
super V> norm = this.norm;
591,540
public static GalenActionGenerateArguments parse(String[] args) {<NEW_LINE>args = ArgumentsUtils.processSystemProperties(args);<NEW_LINE>Options options = new Options();<NEW_LINE>options.addOption("e", "export", true, "Path to generated spec file");<NEW_LINE>options.addOption("G", "no-galen-extras", false, "Disable gal...
.getArgs()[0]);
1,484,055
public boolean apply(GraphBuilderContext b, ResolvedJavaMethod targetMethod, Receiver unused, ValueNode object) {<NEW_LINE>ValueNode <MASK><NEW_LINE>LogicNode isArray = b.add(ObjectIsArrayNode.create(objectNonNull));<NEW_LINE>GuardingNode isArrayGuard;<NEW_LINE>if (b.needsExplicitException()) {<NEW_LINE>isArrayGuard = ...
objectNonNull = b.nullCheckedValue(object);
444,989
private void handleResult(Reconciliation reconciliation, AsyncResult<Void> result, Timer.Sample reconciliationTimerSample) {<NEW_LINE>if (result.succeeded()) {<NEW_LINE>updateResourceState(reconciliation, true, null);<NEW_LINE>successfulReconciliationsCounter(reconciliation.namespace()).increment();<NEW_LINE>reconcilia...
(reconciliation.namespace()));
482,643
private RetainedMessage tryGetLocally(@NotNull final String topic, final int retry, final int bucketIndex) throws Exception {<NEW_LINE>checkNotNull(topic, "Topic must not be null");<NEW_LINE>ThreadPreConditions.startsWith(SINGLE_WRITER_THREAD_PREFIX);<NEW_LINE>final RocksDB bucket = buckets[bucketIndex];<NEW_LINE>final...
getPayloadOrNull(message.getPublishId());
1,639,326
public DockerTag tag(DockerTag source, String repository, String tag, boolean force) throws DockerException {<NEW_LINE>if (repository == null) {<NEW_LINE>throw new IllegalArgumentException("Repository can't be empty");<NEW_LINE>}<NEW_LINE>StringBuilder action = new StringBuilder("/images/");<NEW_LINE>action.append(sour...
("repo=").append(repository);
658,274
public BLangNode transform(EnumDeclarationNode enumDeclarationNode) {<NEW_LINE>Boolean publicQualifier = false;<NEW_LINE>if (enumDeclarationNode.qualifier().isPresent() && enumDeclarationNode.qualifier().get().kind() == SyntaxKind.PUBLIC_KEYWORD) {<NEW_LINE>publicQualifier = true;<NEW_LINE>}<NEW_LINE>for (Node member :...
(enumDeclarationNode.metadata()));
6,462
private void deleteAllDiskCacheFiles() {<NEW_LINE>final String methodName = "deleteAllDiskCacheFiles()";<NEW_LINE>final <MASK><NEW_LINE>final CacheOnDisk cod = this;<NEW_LINE>traceDebug(methodName, "cacheName=" + this.cacheName);<NEW_LINE>AccessController.doPrivileged(new PrivilegedAction() {<NEW_LINE><NEW_LINE>@Overri...
File f = new File(swapRootDirPath);
810,183
public void show() {<NEW_LINE>JComponent panel = createCenterPanel();<NEW_LINE>MnemonicHelper.init(panel);<NEW_LINE>myTree.addTreeSelectionListener(__ -> {<NEW_LINE>if (myPopup.isVisible()) {<NEW_LINE>PopupUpdateProcessor updateProcessor = myPopup.getUserData(PopupUpdateProcessor.class);<NEW_LINE>if (updateProcessor !=...
) myPopup).setShowHints(true);
1,397,061
private Object newInstance(Class<?> clazz) throws Exception {<NEW_LINE>// based on which properties are set, decide which method to use to create a ClientBuilder<NEW_LINE>// as there is no public default constructor, you must decide up front whether to create a ClientBuilder<NEW_LINE>// based on a url or account. If b...
String) props.get(ACCOUNT);
1,563,290
private String calcActionQualifiedPath(String id) {<NEW_LINE>for (Object child : myChildren) {<NEW_LINE>if (child instanceof QuickList) {<NEW_LINE>child = ((QuickList) child).getActionId();<NEW_LINE>}<NEW_LINE>if (child instanceof String) {<NEW_LINE>if (id.equals(child)) {<NEW_LINE>AnAction action = ActionManager.getIn...
() + " | " + path : path;
441,576
protected synchronized void startCertificateChecker(ScheduledExecutorService service) {<NEW_LINE>cancel(true);<NEW_LINE>if (acmeProviderImpl.getAcmeConfig() == null) {<NEW_LINE>if (tc.isDebugEnabled()) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (acmeProviderImpl.getAcmeConfig().getCertCheckerS...
Tr.debug(tc, "Provided acmeProviderImpl.getAcmeConfig() is null, cannot start certificate checker");
330,801
public static ModifyVServerGroupBackendServersResponse unmarshall(ModifyVServerGroupBackendServersResponse modifyVServerGroupBackendServersResponse, UnmarshallerContext _ctx) {<NEW_LINE>modifyVServerGroupBackendServersResponse.setRequestId(_ctx.stringValue("ModifyVServerGroupBackendServersResponse.RequestId"));<NEW_LIN...
(_ctx.stringValue("ModifyVServerGroupBackendServersResponse.VServerGroupId"));
491,198
public List<CodeEntity> createAttributes(List<PersistableProductAttribute> attributes, Long productId, MerchantStore store) {<NEW_LINE>Validate.notNull(productId, "Product id must not be null");<NEW_LINE>Validate.notNull(store, "Merchant cannot be null");<NEW_LINE>// convert to model<NEW_LINE>List<ProductAttribute> mod...
getAttributes().addAll(modelAttributes);
1,721,837
private <T> void processStatementObject(ParserState<T> parserState, String predicateAttributeName, RDFNode statementObject) {<NEW_LINE>logger.trace("Entering processStatementObject with state: {}, for attribute {}", parserState, predicateAttributeName);<NEW_LINE>// Push attribute element<NEW_LINE>parserState.enteringNe...
.replace(FHIR_NS, ""));
428,254
public static void openURL(String url) {<NEW_LINE>try {<NEW_LINE>// Since Java6 this is a much easier method to open the browser<NEW_LINE>if (Desktop.isDesktopSupported()) {<NEW_LINE>Desktop desktop = Desktop.getDesktop();<NEW_LINE>desktop.browse(new URI(url));<NEW_LINE>} else // Only if desktop is not supported we try...
[] { browser, url });
370,863
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Widget widget = busine...
), portal.getId());
1,416,808
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>applyColorTheme();<NEW_LINE>setContentView(R.layout.activity_settings_filters);<NEW_LINE>setupAppBar(R.id.toolbar, R.string.settings_title_filter, true, true);<NEW_LINE>title = (EditText) findViewById(R.id.title);<NE...
findViewById(R.id.text);
1,796,967
void defaultLocation(List<Editor> editors) {<NEW_LINE>int defaultWidth = Toolkit.zoom<MASK><NEW_LINE>int defaultHeight = Toolkit.zoom(Preferences.getInteger("editor.window.height.default"));<NEW_LINE>defaultWidth = Math.min(defaultWidth, deviceBounds.width);<NEW_LINE>defaultHeight = Math.min(defaultHeight, deviceBounds...
(Preferences.getInteger("editor.window.width.default"));
915,758
public int checkRecord(int n) {<NEW_LINE>final int MOD = 1000000007;<NEW_LINE>int[][][] f = new int[n + 1][2][3];<NEW_LINE>f[0] = new int[][] { { 1, 1, 1 }, { 1, 1, 1 } };<NEW_LINE>for (int i = 1; i <= n; i++) {<NEW_LINE>for (int j = 0; j < 2; j++) {<NEW_LINE>for (int k = 0; k < 3; k++) {<NEW_LINE>// ...P<NEW_LINE>int ...
1][j][2];
1,487,918
public void save(File file) throws IOException {<NEW_LINE>PrintStream out = new PrintStream(file, "UTF-8");<NEW_LINE>out.println("font.name=" + fontName);<NEW_LINE>out.println("font.size=" + fontSize);<NEW_LINE>out.println("font.bold=" + bold);<NEW_LINE>out.println("font.italic=" + italic);<NEW_LINE>out.println("font.g...
out.println("pad.top=" + paddingTop);
1,683,628
private void processLastUpdatedTimeParams(String params) throws Exception {<NEW_LINE>DateFormat dFormat = new SimpleDateFormat("yyyy-MM-dd");<NEW_LINE>if (params.contains(":")) {<NEW_LINE>String[] <MASK><NEW_LINE>this.startLastUpdatedTime = setDayStartForDate(dFormat.parse(parts[0]));<NEW_LINE>this.endLastUpdatedTime =...
parts = params.split(":");
1,209,581
public SequencedList<byte[]> read(long seqNum, int limit) throws IOException {<NEW_LINE>assert seqNum >= this.minSeqNum : String.format("seqNum=%d < minSeqNum=%d", seqNum, this.minSeqNum);<NEW_LINE>assert seqNum <= maxSeqNum() : String.format("seqNum=%d is > maxSeqNum=%d", seqNum, maxSeqNum());<NEW_LINE>List<byte[]> el...
"unmatched seqNum=%d to readSeqNum=%d", seqNum + i, readSeqNum);
16,345
public static KMeans fit(BBDTree bbd, double[][] data, int k, int maxIter, double tol) {<NEW_LINE>if (k < 2) {<NEW_LINE>throw new IllegalArgumentException("Invalid number of clusters: " + k);<NEW_LINE>}<NEW_LINE>if (maxIter <= 0) {<NEW_LINE>throw new IllegalArgumentException("Invalid maximum number of iterations: " + m...
KMeans(distortion, centroids, y);
568,802
protected ErlangVisitor buildErlangVisitor(@NotNull final ProblemsHolder holder, @NotNull LocalInspectionToolSession session) {<NEW_LINE>return new ErlangVisitor() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void visitGlobalFunctionCallExpression(@NotNull ErlangGlobalFunctionCallExpression o) {<NEW_LINE>ErlangFuncti...
resolve(), ErlangModule.class);
1,816,149
Object convertRefs(long[] refs, int skipped) {<NEW_LINE>int nrefs = refs.length - skipped;<NEW_LINE>if (nrefs <= 0)<NEW_LINE>return refs;<NEW_LINE>int[] ri = noCompress() ? null : new int[nrefs];<NEW_LINE>long[] rl = noCompress() ? new long[nrefs] : null;<NEW_LINE>for (int i = 0; i < nrefs; ++i) {<NEW_LINE>long <MASK><...
l = refs[skipped + i];
751,262
public void addAcceptableReferenceProviders(@Nonnull PsiElement position, @Nonnull List<ProviderInfo<Provider, ProcessingContext>> list, @Nonnull PsiReferenceService.Hints hints) {<NEW_LINE>for (ProviderInfo<Provider, ElementPattern> trinity : myProviderPairs) {<NEW_LINE>if (hints != PsiReferenceService.Hints.NO_HINTS ...
final ProcessingContext context = new ProcessingContext();
560,653
public void run() {<NEW_LINE>try {<NEW_LINE>log.info("Running {}", getName());<NEW_LINE>// Create the update lambda.<NEW_LINE>Universe.UniverseUpdater updater = universe -> {<NEW_LINE>// If this universe is not being edited, fail the request.<NEW_LINE>UniverseDefinitionTaskParams universeDetails = universe.getUniverseD...
.clientRootCA = taskParams().clientRootCA;
870,782
public LogicalSubQueryPlan buildLogicalQueryPlan(ContextManager contextManager) {<NEW_LINE>TreeNodeLabelManager treeNodeLabelManager = contextManager.getTreeNodeLabelManager();<NEW_LINE>LogicalVertex inputVertex = getInputNode().getOutputVertex();<NEW_LINE>LogicalSubQueryPlan logicalQueryPlan = new LogicalSubQueryPlan(...
LogicalVertex flatOutputVertex = logicalQueryPlan.getOutputVertex();
1,103,427
public static <T, U> PollerFlux<PollResult<T>, U> create(SerializerAdapter serializerAdapter, HttpPipeline pipeline, Type pollResultType, Type finalResultType, Duration defaultPollInterval, Function<PollingContext<PollResult<T>>, Mono<PollResult<T>>> lroInitOperation, Context context) {<NEW_LINE><MASK><NEW_LINE>Objects...
Objects.requireNonNull(serializerAdapter, "'serializerAdapter' cannot be null.");
378,984
public final ClassNameOrInterfaceContext classNameOrInterface() throws RecognitionException {<NEW_LINE>ClassNameOrInterfaceContext _localctx = new ClassNameOrInterfaceContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>int _alt;<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>...
enterRule(_localctx, 16, RULE_classNameOrInterface);
229,052
private ClickHouseHttpResponse buildResponse(HttpResponse<InputStream> r) throws IOException {<NEW_LINE>HttpHeaders headers = r.headers();<NEW_LINE>String displayName = headers.firstValue("X-ClickHouse-Server-Display-Name").<MASK><NEW_LINE>String queryId = headers.firstValue("X-ClickHouse-Query-Id").orElse("");<NEW_LIN...
orElse(server.getHost());
1,516,428
private static TypeBinding toRawType(TypeBinding tb) {<NEW_LINE>if (// tb instanceof WildcardBinding ||<NEW_LINE>tb instanceof RawTypeBinding || tb instanceof BaseTypeBinding || // tb instanceof TypeVariableBinding ||<NEW_LINE>tb instanceof ProblemReferenceBinding) {<NEW_LINE>return tb;<NEW_LINE>} else if (tb instanceo...
ParameterizedTypeBinding) tb).environment();
829,483
public void enqueueInstallation() {<NEW_LINE>if (mResolutionResults == null)<NEW_LINE>return;<NEW_LINE>if (mResolutionResults.size() == 1) {<NEW_LINE>enqueueSingleFiltered(mResolutionResults.get(0));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (UriMessResolutionResult resolutionResult : mResolutionResults) {<NEW_LINE>if (...
().get(0));
714,770
protected void initChannel(SocketChannel ch) throws Exception {<NEW_LINE>if (serverSslCtxRefresher != null && this.enableTls) {<NEW_LINE>SslContext sslContext = serverSslCtxRefresher.get();<NEW_LINE>if (sslContext != null) {<NEW_LINE>ch.pipeline().addLast(TLS_HANDLER, sslContext.newHandler(ch.alloc()));<NEW_LINE>}<NEW_...
new ProxyConnection(proxyService, sslHandlerSupplier));
24,267
public ThreeState deepEqual(@Nonnull final ASTNode oldNode, @Nonnull final LighterASTNode newNode) {<NEW_LINE>ProgressIndicatorProvider.checkCanceled();<NEW_LINE>boolean oldIsErrorElement = oldNode instanceof PsiErrorElement;<NEW_LINE>boolean newIsErrorElement = newNode.getTokenType() == TokenType.ERROR_ELEMENT;<NEW_LI...
? ThreeState.YES : ThreeState.NO;
1,002,179
public void loadScriptFromFile(String fileName, String sourceURL, boolean loadSynchronously) {<NEW_LINE>mSourceURL = sourceURL;<NEW_LINE>try {<NEW_LINE>final String contents = (String) Class.forName("host.exp.exponent.ReactNativeStaticHelpers").getMethod("getBundleSourceForPath", String.class<MASK><NEW_LINE>if (content...
).invoke(null, fileName);
779,261
public void writeMethodAnnotations(TWSDLOperation two, JMethod jMethod) {<NEW_LINE>JAnnotationUse actionAnn = null;<NEW_LINE>if (!(two instanceof Operation))<NEW_LINE>return;<NEW_LINE>Operation o = ((Operation) two);<NEW_LINE>// explicit input action<NEW_LINE>if (o.getInput().getAction() != null && !o.getInput().getAct...
jam = actionAnn.paramArray("fault");
1,634,354
public PhysicalPlan generatePhysicalPlan(PhysicalGenerator generator) throws QueryProcessException {<NEW_LINE>int measurementsNum = measurementList.length;<NEW_LINE>if (times.length == 1) {<NEW_LINE>if (measurementsNum != valueLists.get(0).length) {<NEW_LINE>throw new SQLParserException(String.format("the measurementLi...
get(0).length));
762,419
public void marshall(WriteCampaignRequest writeCampaignRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (writeCampaignRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(writeCampaignRequest.get...
writeCampaignRequest.getLimits(), LIMITS_BINDING);
738,731
public static Constructor<?> findResourceConstructor(Class<?> resourceClass, boolean perRequest) {<NEW_LINE>List<Constructor<?>> cs = new LinkedList<Constructor<?>>();<NEW_LINE>for (Constructor<?> c : resourceClass.getConstructors()) {<NEW_LINE>// Liberty change start<NEW_LINE>Annotation[<MASK><NEW_LINE>boolean hasInje...
] anna = c.getDeclaredAnnotations();
1,042,575
protected void process(String maxMac, ArrayList<String> values) {<NEW_LINE>// # Timestamp, X, Y, HEADING, MAC Address of AP, RSS, FLOOR<NEW_LINE>if (maxMac.equals(args.firstMac.getBssid()) || (args.secondMac != null && maxMac.equals(args.secondMac.getBssid()))) {<NEW_LINE>String[] segs = values.get(0).split(" ");<NEW_L...
.parseDouble(segs[2]);
615,325
public void render(ShaderProgram shader, int primitiveType, int offset, int count, boolean autoBind) {<NEW_LINE>if (count == 0)<NEW_LINE>return;<NEW_LINE>if (autoBind)<NEW_LINE>bind(shader);<NEW_LINE>if (isVertexArray) {<NEW_LINE>if (indices.getNumIndices() > 0) {<NEW_LINE>ShortBuffer buffer = indices.getBuffer();<NEW_...
GL_UNSIGNED_SHORT, offset * 2, numInstances);
1,063,505
int processBroker(Map<Integer, Map<String, DescribeLogDirsResponse.LogDirInfo>> logDirectoriesResponseMap, Node broker, String topic) {<NEW_LINE>int totalPartitionsInBroker = 0;<NEW_LINE>LOGGER.trace("logDirectoriesResponseMap: {}", logDirectoriesResponseMap);<NEW_LINE>Map<String, DescribeLogDirsResponse.LogDirInfo> lo...
.iterator().next();
63,313
protected MethodSource createMethodSource(final Method method) {<NEW_LINE>return new MethodSource() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Body getBody(SootMethod m, String phaseName) {<NEW_LINE>Body b = Jimple.<MASK><NEW_LINE>try {<NEW_LINE>// add the body of this code item<NEW_LINE>DexBody dexBody = new DexBo...
v().newBody(m);
774,966
public static void buildApiDoc(ApiConfig config, JavaProjectBuilder javaProjectBuilder) {<NEW_LINE>DocBuilderTemplate builderTemplate = new DocBuilderTemplate();<NEW_LINE>builderTemplate.checkAndInit(config, false);<NEW_LINE>config.setParamsDataToTree(false);<NEW_LINE>config.setAdoc(true);<NEW_LINE>ProjectDocConfigBuil...
apiDocList = docBuildTemplate.getApiData(configBuilder);
835,459
private RDD<Element> doOperationUsingRFileReaderRDD(final GetRDDOfAllElements operation, final Context context, final AccumuloStore accumuloStore) throws OperationException {<NEW_LINE>final Configuration conf = getConfiguration(operation);<NEW_LINE>// Need to add validation iterator manually (it's not added by the addI...
throw new OperationException("IOException serialising configuration", e);
76,130
private void asyncNextBatch() {<NEW_LINE>if (_rpcRunning) {<NEW_LINE>logger.error("scan rpc already be running, encounter logic error, we just abandon this scan, " + "tableName({}), appId({})", _table.getTableName(<MASK><NEW_LINE>_encounterError = true;<NEW_LINE>_cause = new PException("scan internal error, rpc is alre...
), _table.getAppID());
1,142,469
public void read(org.apache.thrift.protocol.TProtocol prot, knnQueryBatch_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>struct.k = iprot.readI32();<NEW_LINE>struct.setKIsSet(true);<NEW_LINE>{<NEW_L...
struct.queryObj.add(_elem22);
1,355,587
private void updateVertexBuffers(List<BlockPos> blocksToHarvest, List<BlockPos> blocksToReplant) {<NEW_LINE>if (WurstClient.MC.getBlockEntityRenderDispatcher().camera == null)<NEW_LINE>return;<NEW_LINE>BufferBuilder bufferBuilder = Tessellator.getInstance().getBuffer();<NEW_LINE>BlockPos camPos = RenderUtils.getCameraB...
RenderUtils.drawNode(renderNode, bufferBuilder);
807,604
public JsonElement serializeProperty(PropertyKey key, Object value, String localPropertyView, int depth) {<NEW_LINE>try {<NEW_LINE>PropertyConverter converter = key.inputConverter(securityContext);<NEW_LINE>if (converter != null) {<NEW_LINE>try {<NEW_LINE>return serializeRoot(converter.revert(value), localPropertyView,...
, t.getMessage() });
685,300
protected IStatus run(IProgressMonitor monitor) {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>Pack p = null;<NEW_LINE>try {<NEW_LINE>p = tcp.getSingle(RequestCmd.LOAD_APICALL_SUMMARY, param);<NEW_LINE>} catch (Exception e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>return Status.CANCEL_STATUS;<NEW_LI...
countLv = m.getList("count");
1,165,180
public RankProfile clone() {<NEW_LINE>try {<NEW_LINE>RankProfile clone = (RankProfile) super.clone();<NEW_LINE>clone.rankSettings = new LinkedHashSet<>(this.rankSettings);<NEW_LINE>// hmm?<NEW_LINE>clone.matchPhaseSettings = this.matchPhaseSettings;<NEW_LINE>clone.summaryFeatures = summaryFeatures != null ? new LinkedH...
throw new RuntimeException("Won't happen", e);
1,560,985
public JsonOutOfStockResponse handleOutOfStockRequest(@NonNull final String warehouseIdentifier, @NonNull final JsonOutOfStockNoticeRequest outOfStockInfoRequest) {<NEW_LINE>if (!Boolean.TRUE.equals(outOfStockInfoRequest.getClosePendingShipmentSchedules()) && !Boolean.TRUE.equals(outOfStockInfoRequest.getCreateInventor...
of()).build();
1,492,072
public void search3(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>request = wrapRequest(request);<NEW_LINE>Player player = playerService.getPlayer(request, response);<NEW_LINE>String username = securityService.getCurrentUsername(request);<NEW_LINE>Integer musicFolderId = getIntPa...
(), artist, username));
1,470,302
public String toJSONString() {<NEW_LINE>StringBuilder sb = new StringBuilder("{");<NEW_LINE>sb.append("\"time\":" + timeFlag + ",");<NEW_LINE>sb.append("\"id\":\"" + id + "\",");<NEW_LINE>sb.append("\"title\":\"" + title + "\",");<NEW_LINE>sb.append("\"description\":\"" + description + "\",");<NEW_LINE>sb.append("\"hos...
append("}").toString();
1,279,033
public void encode(int markerID, int cellID, PackedBits8 encodedPacket) {<NEW_LINE>// pre-allocate memory for encoded packet<NEW_LINE>int elementsInGrid = gridBitLength * gridBitLength;<NEW_LINE>encodedPacket.resize(elementsInGrid);<NEW_LINE>// Build the packet<NEW_LINE>bits.resize(0);<NEW_LINE>// Specify the ID number...
append(checkSum, checksumBitCount, true);
554,797
public RefundInvoiceCandidate createOrDeleteAdditionalAssignments(@NonNull final RefundInvoiceCandidate refundInvoiceCandidate, @NonNull final RefundConfig oldRefundConfig, @NonNull final RefundConfig newRefundConfig) {<NEW_LINE>if (oldRefundConfig.equals(newRefundConfig)) {<NEW_LINE>return refundInvoiceCandidate;<NEW_...
RefundContract refundContract = refundInvoiceCandidate.getRefundContract();
1,692,362
protected Object doInBackground() throws Exception {<NEW_LINE>downloadTaskRunning = true;<NEW_LINE>AndroidSdkHandler mHandler = AndroidSdkHandler.getInstance(sdkFolder);<NEW_LINE>FileSystemFileOp fop = (FileSystemFileOp) FileOpUtils.create();<NEW_LINE>CustomSettings settings = new CustomSettings();<NEW_LINE>Downloader ...
mRepoManager.getPackages(), progress);
1,522,752
public DocumentAttributeValueCountPair unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DocumentAttributeValueCountPair documentAttributeValueCountPair = new DocumentAttributeValueCountPair();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
int originalDepth = context.getCurrentDepth();
787,944
protected Control createContents(Composite parent) {<NEW_LINE>Composite composite = new Composite(parent, SWT.NONE);<NEW_LINE>composite.setLayout(new GridLayout());<NEW_LINE>composite.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create());<NEW_LINE>fProject = (IProject) getElement().getAdapter(IResourc...
0 ? null : fCurrentProjectNatures[0];
885,363
public Request<DescribeEnvironmentHealthRequest> marshall(DescribeEnvironmentHealthRequest describeEnvironmentHealthRequest) {<NEW_LINE>if (describeEnvironmentHealthRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeEnvironmentHealth...
, StringUtils.fromString(attributeNamesListValue));
1,753,265
public MessageCorrelationResultImpl execute(final CommandContext commandContext) {<NEW_LINE>ensureAtLeastOneNotNull("At least one of the following correlation criteria has to be present: " + "messageName, businessKey, correlationKeys, processInstanceId", messageName, builder.getBusinessKey(), builder.getCorrelationProc...
), builder.getProcessInstanceId());
1,558,574
public void dangerPermanentlyRemoveSecretsDeletedBeforeDate(DateTime deletedBefore, int sleepMillis) throws InterruptedException {<NEW_LINE>checkArgument(deletedBefore != null);<NEW_LINE>SecretSeriesDAO secretSeriesDAO = secretSeriesDAOFactory.using(dslContext.configuration());<NEW_LINE>SecretContentDAO secretContentDA...
using(dslContext.configuration());
352,813
private Wo list(Business business, Wi wi) throws Exception {<NEW_LINE>List<Person> os = business.person().pick(wi.getPersonList());<NEW_LINE>List<String> groupIds = new ArrayList<>();<NEW_LINE>List<String> personIds = new ArrayList<>();<NEW_LINE>List<String> <MASK><NEW_LINE>for (Person person : os) {<NEW_LINE>personIds...
unitIds = new ArrayList<>();
493,250
public StopGameSessionPlacementResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StopGameSessionPlacementResult stopGameSessionPlacementResult = new StopGameSessionPlacementResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu...
JsonToken token = context.getCurrentToken();
899,849
public String toOperationId(String operationId) {<NEW_LINE>// throw exception if method name is empty<NEW_LINE>if (StringUtils.isEmpty(operationId)) {<NEW_LINE>throw new RuntimeException("Empty method/operation name (operationId) not allowed");<NEW_LINE>}<NEW_LINE>operationId = camelize(sanitizeName(operationId), true)...
warn("{} (reserved word) cannot be used as method name. Renamed to {}", operationId, newOperationId);
898,553
public static GetDownloadUrlsResponse unmarshall(GetDownloadUrlsResponse getDownloadUrlsResponse, UnmarshallerContext context) {<NEW_LINE>getDownloadUrlsResponse.setRequestId(context.stringValue("GetDownloadUrlsResponse.RequestId"));<NEW_LINE>getDownloadUrlsResponse.setCode(context.stringValue("GetDownloadUrlsResponse....
("GetDownloadUrlsResponse.Results[" + i + "].Code"));
665,988
private void handleFailure(String text, Throwable e) {<NEW_LINE>ApiRequestException are = e instanceof ApiRequestException ? (ApiRequestException) e : null;<NEW_LINE>boolean isAuthError = are != null && are.getStatus() == HttpURLConnection.HTTP_UNAUTHORIZED;<NEW_LINE>if (isAuthError) {<NEW_LINE>Snackbar.make(mCoordinat...
UncaughtExceptionHandler handler = currentThread.getUncaughtExceptionHandler();
82,037
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {<NEW_LINE>if ((tileIcons == null) || (tileIcons.length < 2)) {<NEW_LINE>super.paintBorder(c, g, x, y, width, height);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Insets insets = getBorderInsets(c);<NEW_LINE>int clipWidth, clipHeight;<NEW_LI...
insets.right, insets.top);
1,199,067
private static <T, U> RoutingPredicate<T> parseCompareRoutingPredicate(String predicateExpr, Function<String, U> nameConverter, BiFunction<U, String, Predicate<T>> equalsPredicate) {<NEW_LINE>final Matcher compareMatcher = COMPARE_PATTERN.matcher(predicateExpr);<NEW_LINE>if (compareMatcher.matches()) {<NEW_LINE>assert ...
.apply(name), value);
1,127,396
public void reportSyntaxError(final String message) {<NEW_LINE>int index = isValidLookhead() ? this.lookhead.getStartIndex() : this.lexer.getCurrentIndex();<NEW_LINE>if (this.lookhead != null) {<NEW_LINE>this.lexer.pushback(this.lookhead);<NEW_LINE>}<NEW_LINE>//<NEW_LINE>String //<NEW_LINE>msg = //<NEW_LINE>"Syntax err...
filteredTraces = new ArrayList<>();
160,405
public SmartHomeAppliance unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SmartHomeAppliance smartHomeAppliance = new SmartHomeAppliance();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
class).unmarshall(context));
877,521
private void connectPostpositives() {<NEW_LINE>postpRoot_ST.addEmpty(postpZero_S);<NEW_LINE>postpZero_S.addEmpty(nVerb_S);<NEW_LINE>// gibi is kind of special.<NEW_LINE>DictionaryItem gibiGen = lexicon.getItemById("gibi_Postp_PCGen");<NEW_LINE>DictionaryItem gibiNom = lexicon.getItemById("gibi_Postp_PCNom");<NEW_LINE>D...
.rootIsAny(gibiGen, gibiNom));
145,324
private void configureCollection(Context context, String collectionID, int type, String oaiSource, String oaiSetId, String mdConfigId) {<NEW_LINE>handler.logInfo("Running: configure collection");<NEW_LINE>Collection collection = resolveCollection(context, collectionID);<NEW_LINE>handler.logInfo(String.valueOf<MASK><NEW...
(collection.getID()));
1,831,824
protected void startBenchmark() {<NEW_LINE>LayoutInflater inflater = LayoutInflater.from(getActivity());<NEW_LINE>TextView textView = (TextView) rootLayout.findViewById(R.id.text);<NEW_LINE>Random random = new Random();<NEW_LINE>final int ITERATIONS = 500;<NEW_LINE>BenchmarkAggregator yogaInflationAggregator = new Benc...
inflater.inflate(yogaLayout, null);
174,969
private static InstDBAdapter upgrade(DBHandle dbHandle, AddressMap addrMap, InstDBAdapter oldAdapter, TaskMonitor monitor) throws VersionException, IOException, CancelledException {<NEW_LINE>AddressMap oldAddrMap = addrMap.getOldAddressMap();<NEW_LINE>DBHandle tmpHandle = new DBHandle();<NEW_LINE>try {<NEW_LINE>tmpHand...
InstDBAdapterV1(dbHandle, addrMap, true);
325,781
public void onClick(View v) {<NEW_LINE>PictureAttributes pictureAttributes = Attributes.createPictureAttributes();<NEW_LINE>pictureAttributes.setHeight(500);<NEW_LINE>pictureAttributes.setWidth(500);<NEW_LINE>pictureAttributes.setType(PictureAttributes.PictureType.SQUARE);<NEW_LINE>Profile.Properties properties = new P...
setText(throwable.getMessage());