idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,478,368
private static boolean supportsColumnStatistics(@NotNull String mysqldumpPath) {<NEW_LINE>String fullVersion;<NEW_LINE>try {<NEW_LINE>fullVersion = RuntimeUtils.executeProcess(mysqldumpPath, MySQLConstants.FLAG_VERSION);<NEW_LINE>} catch (DBException e) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (fullVersion == nu...
fullVersion.indexOf(".", fromIdx);
1,236,294
private DdlJob buildDropTableJob(LogicalDropTable logicalDropTable, ExecutionContext executionContext) {<NEW_LINE>DropTablePreparedData dropTablePreparedData = logicalDropTable.getDropTablePreparedData();<NEW_LINE>DdlPhyPlanBuilder dropTableBuilder = new DropTableBuilder(logicalDropTable.relDdl, dropTablePreparedData, ...
), dropTablePreparedData.getTableVersion());
1,830,870
private void handleMessage(@Nonnull Message msg) {<NEW_LINE>msg.addStream(defaultStreamProvider.get());<NEW_LINE>Messages messages = msg;<NEW_LINE>for (MessageProcessor messageProcessor : orderedMessageProcessors) {<NEW_LINE>messages = messageProcessor.process(messages);<NEW_LINE>}<NEW_LINE>for (Message message : messa...
updatePostProcessingReceiveTime(message.getReceiveTime());
1,543,293
public void report(SortedMap<String, Gauge> gauges, SortedMap<String, Counter> counters, SortedMap<String, Histogram> histograms, SortedMap<String, Meter> meters, SortedMap<String, Timer> timers) {<NEW_LINE>if (loggerProxy.isEnabled(marker)) {<NEW_LINE>StringBuilder b = new StringBuilder();<NEW_LINE>for (Entry<String, ...
), entry.getValue());
348,953
public static <NodeType extends ZyGraphNode<?>> String createTooltip(final AbstractZyGraph<NodeType, ?> graph, final Edge edge) {<NEW_LINE>Preconditions.checkNotNull(graph, "Error: Graph argument can not be null");<NEW_LINE>Preconditions.checkNotNull(edge, "Error: Edge argument can not be null");<NEW_LINE>// The genera...
).replace("</html>", "");
1,765,011
public AppendLogResult<MessageLog.MessageRecordMeta> append(RawMessageExtend record) {<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE><MASK><NEW_LINE>String messageId = header.getMessageId();<NEW_LINE>String subject = header.getSubject();<NEW_LINE>AppendMessageRecordResult recordResult;<NEW_LINE>try {<NEW_L...
MessageHeader header = record.getHeader();
1,514,948
private Mono<Response<Void>> deleteByHostPoolWithResponseAsync(String resourceGroupName, String hostPoolName, String privateEndpointConnectionName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is require...
error(new IllegalArgumentException("Parameter hostPoolName is required and cannot be null."));
874,733
private Permission[] renderPermissions(UserGroupInformation ugi) {<NEW_LINE>Permission[] permissions;<NEW_LINE>if (ugi.isFromKeytab()) {<NEW_LINE>// KERBEROS<NEW_LINE>// Leave room to append one extra permission based on the logged in user's info.<NEW_LINE><MASK><NEW_LINE>permissions = new Permission[permlen];<NEW_LINE...
int permlen = KERBEROS_AUTH_PERMISSIONS.length + 1;
30,061
public static void startFragmentInternal(FragmentActivity activity, Fragment fragment, String tag, @Nullable View sharedElement, @Nullable String sharedElementName) {<NEW_LINE>FragmentTransaction transaction = activity.getSupportFragmentManager().beginTransaction();<NEW_LINE>if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPO...
addTarget(currentFragment.getView());
1,586,873
private void vpcTiersCanBeMigrated(List<? extends Network> tiersInVpc, Account account, Map<String, String> networkToOffering, boolean resume) {<NEW_LINE>for (Network network : tiersInVpc) {<NEW_LINE>String networkOfferingUuid = networkToOffering.get(network.getUuid());<NEW_LINE>// offering uuid can be a tier where the...
network.getUuid() + ")");
440,998
public KeyPhrase unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>KeyPhrase keyPhrase = new KeyPhrase();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token =...
String currentParentElement = context.getCurrentParentElement();
467,575
public void render() {<NEW_LINE>StyledTextWriteContext context = new StyledTextWriteContext();<NEW_LINE>StyledTextListWriter listWriter = getListWriter();<NEW_LINE>AttributedCharacterIterator allParagraphs = getAttributedString().getIterator();<NEW_LINE>isFirstParagraph = true;<NEW_LINE>int runLimit = 0;<NEW_LINE>while...
String token = tkzer.nextToken();
233,041
private CallTarget evalFileIntl(TruffleString fileName, String languageId, String mimeType) {<NEW_LINE>CompilerAsserts.neverPartOfCompilation();<NEW_LINE>TruffleLanguage.Env env = getRealm().getEnv();<NEW_LINE>Source source;<NEW_LINE>try {<NEW_LINE>source = Source.newBuilder(languageId, env.getPublicTruffleFile(Strings...
"Cannot evaluate file: " + e.getMessage());
208,160
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String vmName, String runCommandName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be nul...
error(new IllegalArgumentException("Parameter vmName is required and cannot be null."));
1,763,145
public void showBlockedMoves(Graphics2D g, ZonePoint point, double angle, BufferedImage image, float size) {<NEW_LINE>// Resize image to size of 1/4 size of grid<NEW_LINE>double resizeWidth = zone.getGrid().getCellWidth() / image.getWidth() * .25;<NEW_LINE>double resizeHeight = zone.getGrid().getCellHeight() / image.ge...
() * getScale() * resizeWidth;
317,829
private void applyToJavaProject(Jar jarTask) {<NEW_LINE>TaskProvider<JarPackageTreeTask> gen = getProject().getTasks().register("generatePackageTree", JarPackageTreeTask.class, t -> {<NEW_LINE>t.setDescription("Generate dex method counts");<NEW_LINE>t.setGroup("Reporting");<NEW_LINE>t.getConfigProperty().set(getExt());...
getAndroidProject().set(false);
1,467,503
protected void initGame() {<NEW_LINE>getGameScene().setBackgroundColor(Color.BLACK);<NEW_LINE>// getGameScene().setCursorInvisible();<NEW_LINE>emitter = ParticleEmitters.newExplosionEmitter(300);<NEW_LINE>emitter.setMaxEmissions(Integer.MAX_VALUE);<NEW_LINE>emitter.setNumParticles(50);<NEW_LINE>emitter.setEmissionRate(...
t, y * 0.002 * t);
920,114
public void fetch() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objType", objType);<NEW_LINE>MapPack p = (MapPack) tcp.getSingle(RequestCmd.ACTIVESPEED_REAL_TIME_GROUP, param);<NEW_LINE>ActiveSpeedData a = new ActiveSpeedData();<NE...
(p.get("act2"));
1,346,512
public synchronized Object create(Context ic) throws NamingException {<NEW_LINE>if (actualResourceName == null) {<NEW_LINE>actualResourceName = ConnectorsUtil.deriveResourceName(desc.getResourceId(), desc.getName(), desc.getResourceType());<NEW_LINE>try {<NEW_LINE>if (serviceLocator == null) {<NEW_LINE>serviceLocator =...
desc.getName(), this);
1,831,713
void updateClusterState(ClusterState newState) throws WriteStateException {<NEW_LINE>Metadata newMetadata = newState.metadata();<NEW_LINE>final long startTimeMillis = relativeTimeMillisSupplier.getAsLong();<NEW_LINE>final AtomicClusterStateWriter writer <MASK><NEW_LINE>long globalStateGeneration = writeGlobalState(writ...
= new AtomicClusterStateWriter(metaStateService, previousManifest);
642,615
public static org.nd4j.linalg.api.buffer.DataType dtypeConv(int dataType) {<NEW_LINE>switch(dataType) {<NEW_LINE>case DataType.DT_FLOAT_VALUE:<NEW_LINE>return org.nd4j.linalg.api.buffer.DataType.FLOAT;<NEW_LINE>case DataType.DT_DOUBLE_VALUE:<NEW_LINE>return org.nd4j.linalg<MASK><NEW_LINE>case DataType.DT_INT32_VALUE:<N...
.api.buffer.DataType.DOUBLE;
640,920
byte[] transformWithProbes(Class<?> clazz, @Sensitive byte[] classfileBuffer) {<NEW_LINE>Set<ProbeListener> listeners = probeManagerImpl.getInterestedByClass(clazz);<NEW_LINE>if (listeners.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// reader --> serial version uid adder --> process candidate hook adapter --...
? ClassWriter.COMPUTE_FRAMES : ClassWriter.COMPUTE_MAXS;
335,547
private AsyncCallFuture<TemplateApiResult> syncToRegionStoreAsync(TemplateInfo template, DataStore store) {<NEW_LINE>AsyncCallFuture<TemplateApiResult> future = new AsyncCallFuture<TemplateApiResult>();<NEW_LINE>// no need to create entry on template_store_ref here, since entries are already created when prepareSeconda...
+ "/" + template.getUniqueName();
209,534
public void onClick(View view) {<NEW_LINE>Context themedContext = UiUtilities.getThemedContext(getActivity(), !settings.isLightContent());<NEW_LINE>CharSequence[] titles = getMenuTitles();<NEW_LINE>Paint paint = new Paint();<NEW_LINE>paint.setTextSize(getResources().getDimensionPixelSize(R.dimen.default_list_text_size)...
AndroidUtils.dpToPx(themedContext, 32);
1,783,427
public void onError(Exception e) {<NEW_LINE>byte msgType = org.apache<MASK><NEW_LINE>org.apache.thrift.TBase msg;<NEW_LINE>beginCreateBlob_result result = new beginCreateBlob_result();<NEW_LINE>if (e instanceof KeyAlreadyExistsException) {<NEW_LINE>result.kae = (KeyAlreadyExistsException) e;<NEW_LINE>result.set_kae_isS...
.thrift.protocol.TMessageType.REPLY;
936,560
/* Configure product glassfish */<NEW_LINE>public void configureGlassfish() throws EnhancedException {<NEW_LINE>// set executable permissions on most used scripts<NEW_LINE>String installDir = productRef.getInstallLocation();<NEW_LINE>if (!OSUtils.isWindows()) {<NEW_LINE>LOGGER.log(Level.INFO, Msg.get("SETTING_EXECUTE_P...
FileUtils.setAllFilesExecutable(installDir + "/bin");
1,796,203
static RuleKeyHasher<HashCode> createDefaultHasher(Optional<ThriftRuleKeyLogger> thriftLogger) {<NEW_LINE>RuleKeyHasher<HashCode> hasher = new GuavaRuleKeyHasher(Hashing.sha1().newHasher());<NEW_LINE>if (logger.isVerboseEnabled()) {<NEW_LINE>hasher = new ForwardingRuleKeyHasher<HashCode, String>(hasher, new StringRuleK...
verbose("RuleKey %s=%s", firstHash, secondHash);
341,905
private void compressStream(PRStream stream) throws IOException {<NEW_LINE>PdfObject pdfSubType = stream.get(PdfName.SUBTYPE);<NEW_LINE>System.out.println(stream.type());<NEW_LINE>if (pdfSubType != null && pdfSubType.toString().equals(PdfName.IMAGE.toString())) {<NEW_LINE>PdfImageObject image = new PdfImageObject(strea...
CompressFormat.JPEG, quality, imgBytes);
1,476,087
public float[] filter(float[] samples) {<NEW_LINE>int bufferLength = samples.length + mBufferOverlap;<NEW_LINE>// Resize the data buffer if needed. This shouldn't happen more than once since all buffers should be same size<NEW_LINE>if (mBuffer.length != bufferLength) {<NEW_LINE>float[] temp = new float[bufferLength];<...
VECTOR_SPECIES, mBuffer, bufferPointer + coefficientPointer);
1,335,600
public boolean startAll() {<NEW_LINE>log.info("Starting all servers");<NEW_LINE>AdempiereServer[] servers = getInActive();<NEW_LINE>for (int i = 0; i < servers.length; i++) {<NEW_LINE>AdempiereServer server = servers[i];<NEW_LINE>try {<NEW_LINE>if (server.isAlive()) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>// Wait unti...
log.warn("Dead: {}", server);
604,960
public void refreshFields() {<NEW_LINE>ResourceConfigData data = this.helper.getData();<NEW_LINE>for (int i = 0; i < jFields.length; i++) {<NEW_LINE>String item;<NEW_LINE>if (FieldHelper.isList(fields[i])) {<NEW_LINE>item = (String) ((JComboBox) jFields[i]).getSelectedItem();<NEW_LINE>} else {<NEW_LINE>item = (String) ...
data.set(fieldName, value);
856,818
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {<NEW_LINE>addPreferencesFromResource(R.xml.preference_backup);<NEW_LINE>subscriptionsBackupsManager = new SubscriptionsBackupsManager(getActivity(), this);<NEW_LINE>// backup/export databases<NEW_LINE>Preference backupDbsPref = findPreference(g...
(R.string.pref_key_import_dbs));
413,469
private void updateAnalyzer() {<NEW_LINE>if (currentPanel != null) {<NEW_LINE>currentPanel.removePropertyChangeListener(this);<NEW_LINE>}<NEW_LINE>analyzerPanel.removeAll();<NEW_LINE>final AnalyzerFactory selected = (AnalyzerFactory) analyzerCombo.getSelectedItem();<NEW_LINE>CustomizerProvider customizer = customizers....
customizer, customizer.initialize());
634,238
private void processLinkRequestForHU(@NonNull final I_M_HU hu, @NonNull final MTLinkRequest request) {<NEW_LINE>final I_M_Material_Tracking materialTracking = request.getMaterialTrackingRecord();<NEW_LINE>//<NEW_LINE>// update the HU itself<NEW_LINE>{<NEW_LINE>final IHUMaterialTrackingBL huMaterialTrackingBL = Services...
), costCollector.getPP_Order());
1,172,462
public void marshall(M3u8Settings m3u8Settings, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (m3u8Settings == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(m3u8Settings.getAudioFramesPerPes(), AUDIOFRAMES...
m3u8Settings.getPmtPid(), PMTPID_BINDING);
947,022
public PsiElement resolve() {<NEW_LINE>// the property may belong to a field that was declared in an implemented interface<NEW_LINE>final JSGraphQLEndpointObjectTypeDefinition typeDefinition = PsiTreeUtil.getParentOfType(self, JSGraphQLEndpointObjectTypeDefinition.class);<NEW_LINE>if (typeDefinition != null && typeDefi...
PsiReference reference = implementedType.getReference();
1,123,144
public static void horizontal3(Kernel1D_F32 kernel, GrayF32 image, GrayF32 dest) {<NEW_LINE>final float[] dataSrc = image.data;<NEW_LINE>final float[] dataDst = dest.data;<NEW_LINE>final float k1 = kernel.data[0];<NEW_LINE>final float k2 = kernel.data[1];<NEW_LINE>final float k3 = kernel.data[2];<NEW_LINE>final <MASK><...
int radius = kernel.getRadius();
566,199
protected final AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext) {<NEW_LINE>BeanDefinitionBuilder handlerBuilder = parseHandler(element, parserContext);<NEW_LINE>IntegrationNamespaceUtils.setValueIfAttributeDefined(handlerBuilder, element, "output-channel", "outputChannelName");<NEW_LI...
AbstractBeanDefinition beanDefinition = builder.getBeanDefinition();
1,600,702
public void onMessageReceived(MessageEvent messageEvent) {<NEW_LINE><MASK><NEW_LINE>if (messageEvent.getPath().equals(KeyProperties.PATH_NOTIFICATION)) {<NEW_LINE>final DataMap map = DataMap.fromByteArray(messageEvent.getData());<NEW_LINE>Intent notificationIntent = new Intent(this, WearActivity.class);<NEW_LINE>Pendin...
Log.v(TAG, "received message");
948,555
private void purgeReportedPeersIfExceeds() {<NEW_LINE><MASK><NEW_LINE>if (size > MAX_REPORTED_PEERS) {<NEW_LINE>log.info("We have already {} reported peers which exceeds our limit of {}." + "We remove random peers from the reported peers list.", size, MAX_REPORTED_PEERS);<NEW_LINE>int diff = size - MAX_REPORTED_PEERS;<...
int size = reportedPeers.size();
1,473,710
public DBCPlan evaluate(DBRProgressMonitor monitor) throws InvocationTargetException {<NEW_LINE>try {<NEW_LINE>DBCQueryPlannerConfiguration configuration = makeExplainPlanConfiguration(monitor, planner);<NEW_LINE>if (configuration == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DBExecUtils.tryExecuteRecover(monito...
planQueryExecution(session, query, configuration);
1,712,801
public static String runCommandAndGetStdout(Iterable<String> command, ProjectFilesystem projectFilesystem, ProcessExecutor processExecutor) throws InterruptedException, ExtraInfoExecutionException {<NEW_LINE>ProcessExecutor.Result extraInfoResult;<NEW_LINE>try {<NEW_LINE>extraInfoResult = processExecutor.launchAndExecu...
), Optional.empty());
1,116,908
private void runAssertionManagementEvents(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>SupportVirtualDW vdw = registerTypeSetMapData(env, path);<NEW_LINE>// create-index event<NEW_LINE>vdw.getEvents().clear();<NEW_LINE>env.compileDeploy("@name('idx') create index IndexOne o...
(1).getName());
204,776
static private List<JavaProblem> checkForMissingBraces(PreprocSketch ps) {<NEW_LINE>List<JavaProblem> problems = new ArrayList<>(0);<NEW_LINE>for (int tabIndex = 0; tabIndex < ps.tabStartOffsets.length; tabIndex++) {<NEW_LINE>int tabStartOffset = ps.tabStartOffsets[tabIndex];<NEW_LINE>int tabEndOffset = (tabIndex < ps....
findFirst().orElse(null);
803,652
private ImmutableMap<String, JsonResponseUpsertItemBuilder> syncJsonToContacts(@NonNull final JsonRequestComposite jsonBPartnerComposite, @NonNull final BPartnerComposite bpartnerComposite, @NonNull final SyncAdvise parentSyncAdvise) {<NEW_LINE>final ShortTermContactIndex shortTermIndex = new ShortTermContactIndex(bpar...
jsonBPartnerComposite.getSyncAdvise(), parentSyncAdvise);
916,680
public void actionPerformed(@Nonnull AnActionEvent e) {<NEW_LINE>Project project = <MASK><NEW_LINE>if (ChangeListManager.getInstance(project).isFreezedWithNotification(null))<NEW_LINE>return;<NEW_LINE>VcsRevisionNumber currentRevisionNumber = e.getRequiredData(VcsDataKeys.HISTORY_SESSION).getCurrentRevisionNumber();<NE...
e.getRequiredData(CommonDataKeys.PROJECT);
306,155
public okhttp3.Call connectGetNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy".replace...
= new ArrayList<Pair>();
1,326,682
final DeleteBucketAccessKeyResult executeDeleteBucketAccessKey(DeleteBucketAccessKeyRequest deleteBucketAccessKeyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteBucketAccessKeyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
(super.beforeMarshalling(deleteBucketAccessKeyRequest));
94,654
final UpdateInstanceProfileResult executeUpdateInstanceProfile(UpdateInstanceProfileRequest updateInstanceProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateInstanceProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,046,676
String computeAuthorizationHeader(ConsumerKey consumerAuth, RequestToken userAuth, String signature, long oauthTimestamp, String percentEncodedNonce) {<NEW_LINE>StringBuilder sb = StringBuilderPool.DEFAULT.stringBuilder();<NEW_LINE>sb.append("OAuth ");<NEW_LINE>sb.append(KEY_OAUTH_CONSUMER_KEY).append("=\"").append(con...
, signature).append("\", ");
1,492,194
protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>// Hack for STR Rx, =0xSOMEADDR<NEW_LINE>IO...
getChildren().get(0);
1,084,791
public ApiResponse<HealthCheckResult> fakeHealthGetWithHttpInfo() throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/fake/health";<NEW_LINE>// query params<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pair>();<NEW_LINE>Map...
HashMap<String, String>();
538,800
protected Object doInvoke(Object... args) throws Exception {<NEW_LINE>try {<NEW_LINE>return getBridgedMethod().invoke(getBean(), args);<NEW_LINE>} catch (IllegalArgumentException ex) {<NEW_LINE>assertTargetBean(getBridgedMethod(), getBean(), args);<NEW_LINE>String text = (ex.getMessage() != null ? <MASK><NEW_LINE>throw...
ex.getMessage() : "Illegal argument");
27,922
private void notifyProcessors(List<BLangAnnotationAttachment> attachments, BiConsumer<CompilerPlugin, List<AnnotationAttachmentNode>> notifier) {<NEW_LINE>Map<CompilerPlugin, List<AnnotationAttachmentNode>> attachmentMap = new HashMap<>();<NEW_LINE>for (BLangAnnotationAttachment attachment : attachments) {<NEW_LINE>Def...
, Collections.unmodifiableList(list));
1,481,137
public void clean() throws IOException {<NEW_LINE>Storage storage = new Storage(imageDir);<NEW_LINE>long currentVersion = storage.getImageJournalId();<NEW_LINE>long imageDeleteVersion = currentVersion - 1;<NEW_LINE>File currentImage = storage.getImageFile(currentVersion);<NEW_LINE>if (currentImage.exists()) {<NEW_LINE>...
lastIndexOf('.') + 1));
844,463
public SqlRow sqlRow(ResultSet resultSet, String dbTrueValue, boolean binaryOptimizedUUID) throws SQLException {<NEW_LINE>ResultSetMetaData meta = resultSet.getMetaData();<NEW_LINE>int estCap = (int) (meta.getColumnCount() / 0.7f) + 1;<NEW_LINE>DefaultSqlRow ret = new DefaultSqlRow(estCap, 0.75f, dbTrueValue, binaryOpt...
.getTableName(i), name);
1,716,716
public static DescribeDialogueNodeStatisticsResponse unmarshall(DescribeDialogueNodeStatisticsResponse describeDialogueNodeStatisticsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDialogueNodeStatisticsResponse.setRequestId(_ctx.stringValue("DescribeDialogueNodeStatisticsResponse.RequestId"));<NEW_LINE>describe...
(_ctx.integerValue("DescribeDialogueNodeStatisticsResponse.TotalCompleted"));
204,592
public void generate(NodeLIRBuilderTool gen) {<NEW_LINE>Logger.traceBuildLIR(Logger.BACKEND.PTX, "emitGlobalThreadId: dim=%s", index);<NEW_LINE>LIRGeneratorTool tool = gen.getLIRGeneratorTool();<NEW_LINE>LIRKind kind = tool.getLIRKind(stamp);<NEW_LINE>PTXNodeLIRBuilder ptxNodeBuilder = (PTXNodeLIRBuilder) gen;<NEW_LINE...
ptxNodeBuilder.getBuiltInAllocation(builtIns.threadID);
1,675,844
public List<TransitPath> findShortestPath(final String originNode, final String destinationNode, final Properties limitations) {<NEW_LINE>Date date = nextDate(new Date());<NEW_LINE>List<String<MASK><NEW_LINE>allVertices.remove(originNode);<NEW_LINE>allVertices.remove(destinationNode);<NEW_LINE>final int candidateCount ...
> allVertices = dao.listAllNodes();
635,950
private void addNewDeferConstructor(final CtClass clazz) throws CannotCompileException {<NEW_LINE>final CtClass superClass;<NEW_LINE>try {<NEW_LINE>superClass = clazz.getSuperclass();<NEW_LINE>} catch (NotFoundException e1) {<NEW_LINE>throw new IllegalArgumentException("Internal error: Failed to get superclass for " + ...
0], "{super();}", clazz));
1,385,691
private synchronized void purgeExpired() {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>Map<String, Long> times = getExpiryTimes(false);<NEW_LINE>List<String> expired = new ArrayList<String>();<NEW_LINE>Map<String, Geofence> fences = getFences(false);<NEW_LINE>List<String> activeKeys = getActiveKeys(false);...
Geofence> activeFences = getActiveFences(false);
304,724
private void updateResultsIfNeeded() {<NEW_LINE>if (currentResults == null) {<NEW_LINE>currentResults = batchProvider.getBatch(originalBatchSize, null);<NEW_LINE>lastBatchSize = originalBatchSize;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// We have current results and have not read them.<NEW_LINE>if (lastToken == null) {<N...
of().iterator());
882,787
public boolean validateMethodRequest(MethodConfig methodConfig) {<NEW_LINE>if (methodConfig.getSpreadsheetId() == null || methodConfig.getSpreadsheetId().isBlank()) {<NEW_LINE>throw new AppsmithPluginException(AppsmithPluginError.PLUGIN_EXECUTE_ARGUMENT_ERROR, "Missing required field Spreadsheet Url");<NEW_LINE>}<NEW_L...
methodConfig.getRowObjects(), "Unable to parse request body. Expected a list of row objects.");
230,248
public CompletableFuture<Void> enableDevtools(boolean enable) {<NEW_LINE>if (enable) {<NEW_LINE>return refreshTracker.runAsync("Enable Devtools Support for application '" + getStyledName(null).getString() + "'", () -> {<NEW_LINE>App app = getAppData();<NEW_LINE>if (app instanceof SystemPropertySupport) {<NEW_LINE>Syste...
, DevtoolsUtil.getSecret(project));
1,224,875
private static Object evalNumeric(Number left, Number right, QueryDataTypeFamily family) {<NEW_LINE>switch(family) {<NEW_LINE>case TINYINT:<NEW_LINE>return (byte) (left.byteValue() * right.byteValue());<NEW_LINE>case SMALLINT:<NEW_LINE>return (short) (left.shortValue() * right.shortValue());<NEW_LINE>case INTEGER:<NEW_...
throw new IllegalArgumentException("unexpected result family: " + family);
3,637
default <R1, R2, A1, A2> Tuple2<R1, R2> collect(Collector<? super T, A1, R1> c1, Collector<? super T, A2, R2> c2) {<NEW_LINE>return stream().collect(Collector.of(() -> Tuple.tuple(c1.supplier().get(), c2.supplier().get()), (t2, next) -> {<NEW_LINE>c1.accumulator().accept(t2._1(), next);<NEW_LINE>c2.accumulator().accept...
._2()))));
334,634
public Component generateField(Datasource datasource, String propertyId) {<NEW_LINE>Frame frame = fieldGroup.getFrame();<NEW_LINE>if (frame == null) {<NEW_LINE>throw new IllegalStateException("Table should be attached to frame");<NEW_LINE>}<NEW_LINE>FrameOwner controller = frame.getFrameOwner();<NEW_LINE>if (controller...
("No suitable method named %s for column generator of table %s", methodName, fieldGroupId));
231,150
public void read(org.apache.thrift.protocol.TProtocol prot, getCompactionJob_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet <MASK><NEW_LINE>if (incoming.get(0)) {<NEW_LINE>struct.ti...
incoming = iprot.readBitSet(5);
534,147
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* com.impetus.client.hbase.Writer#writeRelations(org.apache.hadoop.hbase<NEW_LINE>* .client.HTable, java.lang.Object, boolean, java.util.List)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void writeRelations(HTableInterface htable, Object rowKey, boolean...
(r.getRelationValue()));
1,074,223
public synchronized void addSeries(TimeSeries series) {<NEW_LINE>if (oneRangePerSeries) {<NEW_LINE>// get paint for current axis/range/...<NEW_LINE>Paint currPaint = DefaultDrawingSupplier.DEFAULT_PAINT_SEQUENCE[raIndex % DefaultDrawingSupplier.DEFAULT_PAINT_SEQUENCE.length];<NEW_LINE>XYPlot plot = (XYPlot) chart.getPl...
raIndex, new TimeSeriesCollection(series));
370,549
public static void main(String[] args) throws NumberFormatException, IOException, InterruptedException {<NEW_LINE>if (args.length != 3) {<NEW_LINE>System.err.println("USAGE: BookieClient bookieHost port ledger#");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>WriteCallback cb = new WriteCallback() {<NEW_LINE><NEW_LINE>@Override...
numThreads(1).build();
788,797
void emitBlock(Block block) {<NEW_LINE>if (block == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Logger.traceCodeGen(Logger.BACKEND.SPIRV, "block: %d", block.getId());<NEW_LINE>LIRInstruction breakInst = null;<NEW_LINE>for (LIRInstruction op : lir.getLIRforBlock(block)) {<NEW_LINE>if (op != null) {<NEW_LINE>try {<NEW_L...
) + " " + op + "\n");
1,837,816
private void processStringTables(TaskMonitor monitor) throws CancelledException {<NEW_LINE>monitor.setMessage("Processing string tables...");<NEW_LINE>monitor.setShowProgressValue(false);<NEW_LINE>ElfStringTable[] stringTables = elf.getStringTables();<NEW_LINE>long totalLength = 0;<NEW_LINE>for (ElfStringTable stringTa...
incrementProgress(stringTable.getLength());
811,906
public OResultSet executeSimple(OCommandContext ctx) {<NEW_LINE>OInternalResultSet rs = new OInternalResultSet();<NEW_LINE>ODatabaseSession db = (ODatabaseSession) ctx.getDatabase();<NEW_LINE>OSecurityInternal security = ((ODatabaseInternal) db).getSharedContext().getSecurity();<NEW_LINE>ORole role = db.getMetadata().g...
op.resource.toString());
1,051,521
private void checkForEnumSealedPreview(ReferenceBinding supertype, LocalTypeBinding anonymousType) {<NEW_LINE>if (!JavaFeature.SEALED_CLASSES.isSupported(compilerOptions()) || !supertype.isEnum() || !(supertype instanceof SourceTypeBinding))<NEW_LINE>return;<NEW_LINE>SourceTypeBinding sourceSuperType = (SourceTypeBindi...
+ 1], 0, sz);
541,127
// Misc<NEW_LINE>@Override<NEW_LINE>public void onPlacedBy(EntityLivingBase placer, ItemStack stack) {<NEW_LINE>super.onPlacedBy(placer, stack);<NEW_LINE>Item item = stack.getItem();<NEW_LINE>if (item instanceof IItemPipe) {<NEW_LINE>PipeDefinition definition = ((IItemPipe) item).getDefinition();<NEW_LINE>this.pipe = n...
.byMetadata(meta - 1));
215,972
private void checkOutputFile(final String name, final File value) {<NEW_LINE>if (value == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (value.exists() && !value.isFile()) {<NEW_LINE>throw new CommandLineException.BadArgumentValue(name, "the output file location '" + value + "' exists as not a file");<NEW_LINE>}<NEW_...
File parent = value.getParentFile();
658,687
public void init(Map<String, Object> params) {<NEW_LINE>enumValuesTable.addGeneratedColumn("cancel", entity -> {<NEW_LINE>LinkButton delItemBtn = factory.createComponent(LinkButton.class);<NEW_LINE>delItemBtn.setIcon("icons/item-remove.png");<NEW_LINE>delItemBtn.setAction(new AbstractAction("") {<NEW_LINE><NEW_LINE>@Ov...
getItem().getLocalizedValues());
52,146
public final ResultList<Location> listPrefixesAfter(Fields fields, String fqn, int limitParam, String after) throws IOException {<NEW_LINE>String service = EntityUtil.splitFQN(fqn)[0];<NEW_LINE>// forward scrolling, if after == null then first page is being asked<NEW_LINE>List<String> jsons = daoCollection.locationDAO(...
entities, beforeCursor, afterCursor, total);
1,597,394
public TbQueueConsumer<TbProtoQueueMsg<ToCoreNotificationMsg>> createToCoreNotificationsMsgConsumer() {<NEW_LINE>TbKafkaConsumerTemplate.TbKafkaConsumerTemplateBuilder<TbProtoQueueMsg<ToCoreNotificationMsg><MASK><NEW_LINE>consumerBuilder.settings(kafkaSettings);<NEW_LINE>consumerBuilder.topic(partitionService.getNotifi...
> consumerBuilder = TbKafkaConsumerTemplate.builder();
21,243
public Dumper dumpInner(Dumper d) {<NEW_LINE>boolean multi = args.size() != 1;<NEW_LINE>boolean first = true;<NEW_LINE>// If we need to CAST the lambda to something, we have to do this.<NEW_LINE>if (childCastForced()) {<NEW_LINE>d.separator("(").dump(getInferredJavaType().getJavaTypeInstance()).separator(")");<NEW_LINE...
lValue = args.get(i);
594,285
private Future<WorkflowStep> doDeleteStep(final WorkflowStep step, final User user, final boolean async, final boolean hardMode) throws DotDataException {<NEW_LINE>this.isUserAllowToModifiedWorkflow(user);<NEW_LINE>try {<NEW_LINE>if (!hardMode) {<NEW_LINE>// Checking for Next Step references<NEW_LINE>for (final Workflo...
.getName() }, false);
672,380
private CompiledQuery alterTableDropOrAttachPartition(TableReader reader, int action, SqlExecutionContext executionContext) throws SqlException {<NEW_LINE>final int pos = lexer.lastTokenPosition();<NEW_LINE>TableReaderMetadata readerMetadata = reader.getMetadata();<NEW_LINE>if (readerMetadata.getPartitionBy() == Partit...
tok = expectToken(lexer, "'list' or 'where'");
238,725
private void submitReport(Report report, File logs) {<NEW_LINE>DisplayMetrics dm = context.getResources().getDisplayMetrics();<NEW_LINE>String densityBucket = getDensityString(dm);<NEW_LINE>ShareCompat.IntentBuilder intent = // TODO: .addEmailTo("u2020-bugs@blackhole.io")<NEW_LINE>ShareCompat.IntentBuilder.from(context...
.MANUFACTURER).append('\n');
749,975
private void loadUserInfo(final UserModel userModel, final TRTCAudioLayout layout) {<NEW_LINE>if (null == userModel || null == layout) {<NEW_LINE>Log.e(TAG, "loadUserInfo error: null == userModel || null == layout");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>CallingInfoManager.getInstance().getUserInfoByUserId(userModel.use...
layout.setUserName(userModel.userName);
1,189,115
private boolean checkAuthorization(final String authorization) {<NEW_LINE>if (authorization == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>final String userInfo = authorization.substring(6).trim();<NEW_LINE>final String nameAndPassword = new String(DatatypeConverter.parseBase64Binary(userInfo));<N...
nameAndPassword.substring(0, index);
42,045
public static CTTblLook apply(CTTblLook source, CTTblLook destination) {<NEW_LINE>if (!isEmpty(source)) {<NEW_LINE>if (destination == null)<NEW_LINE>destination = Context.getWmlObjectFactory().createCTTblLook();<NEW_LINE>destination.setFirstColumn(apply(source.getFirstColumn(), destination.getFirstColumn()));<NEW_LINE>...
, destination.getFirstRow()));
1,101,707
private void createDDOrderLine(@NonNull final DDOrder ddOrder, @NonNull final DDOrderLine linePojo, @NonNull final I_DD_NetworkDistributionLine networkDistributionLineRecord, @NonNull final DDOrderProducer.FromToWarehouse fromToWarehouse, @NonNull final I_DD_Order ddOrderRecord) {<NEW_LINE>// Create DD Order Line<NEW_L...
setM_Locator_ID(locatorFromId.getRepoId());
502,114
protected Channel doCreateConnection(String targetIP, int targetPort, int connectTimeout) throws Exception {<NEW_LINE>String address = targetIP + ":" + targetPort;<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.debug("connectTimeout of address [{}] is [{}].", address, connectTimeout);<NEW_LINE>}<NEW_LINE>if (c...
("illegal timeout for creating connection, address: %s, timeout: %d", address, connectTimeout));
610,105
private static int generateCustomizableTemplate(Config config, CommandSpec spec) throws IOException {<NEW_LINE>if (config.templatesDirectory == null) {<NEW_LINE>return CommandLine.ExitCode.OK;<NEW_LINE>}<NEW_LINE>if (!mkdirs(config, config.templatesDirectory)) {<NEW_LINE>return CommandLine.ExitCode.SOFTWARE;<NEW_LINE>}...
.templatesDirectory, makeFileName(spec));
682,531
public static <P extends ImmutableFollowParameters> void initParser(ConstructingObjectParser<P, ?> parser) {<NEW_LINE>parser.declareInt(ConstructingObjectParser.optionalConstructorArg(), FollowParameters.MAX_READ_REQUEST_OPERATION_COUNT);<NEW_LINE>parser.declareInt(ConstructingObjectParser.optionalConstructorArg(), Fol...
MAX_WRITE_BUFFER_SIZE, ObjectParser.ValueType.STRING);
1,132,012
public int maxPoints(int[][] points) {<NEW_LINE>if (points.length < 3) {<NEW_LINE>return points.length;<NEW_LINE>}<NEW_LINE>int max = 0;<NEW_LINE>Map<Long, Integer> map = new HashMap<>();<NEW_LINE>for (int i = 0; i < points.length; i++) {<NEW_LINE>int dup = 1;<NEW_LINE>map.clear();<NEW_LINE>for (int j = i + 1; j < poin...
- points[i][1];
42,243
final DeleteDBParameterGroupResult executeDeleteDBParameterGroup(DeleteDBParameterGroupRequest deleteDBParameterGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDBParameterGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
endClientExecution(awsRequestMetrics, request, response);
1,796,622
private double[] calcBuggedLerps(double yScale, double xPos, double zPos, int cubeX, int cubeZ, double u, int yIdx) {<NEW_LINE>double yPos = yIdx * yScale + yOffset;<NEW_LINE>int cubeY = (int) Math.floor(yPos) & 255;<NEW_LINE>yPos -= Math.floor(yPos);<NEW_LINE>int A = permutations[cubeX] + cubeY;<NEW_LINE>int AA = perm...
BA = permutations[B] + cubeZ;
771,086
public void run() {<NEW_LINE>while (!isInterrupted()) {<NEW_LINE>long currentTime = System.currentTimeMillis();<NEW_LINE>for (WeakReference<ExpiringDualHashBidiMap<?, ?>> reference : new HashSet<>(references)) {<NEW_LINE>final ExpiringDualHashBidiMap<?, ?> collection = reference.get();<NEW_LINE>if (collection == null) ...
removals = new ArrayList<>();
687,861
private void sendToGroupSupport(String param_data) {<NEW_LINE>try {<NEW_LINE>List<NetworkInterface> x = NetUtils.getNetworkInterfaces();<NEW_LINE>for (NetworkInterface network_interface : x) {<NEW_LINE>if (!interfaceSelected(network_interface)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>Enumeration<InetAddress> ni_addres...
mc_sock = socket_cache.get(socket_key);
1,015,760
private static <T extends TokenId> void logModification(MutableTokenList<T> tokenList, TokenHierarchyEventInfo eventInfo, boolean updateJoined) {<NEW_LINE>int modOffset = eventInfo.modOffset();<NEW_LINE>int removedLength = eventInfo.removedLength();<NEW_LINE><MASK><NEW_LINE>CharSequence inputSourceText = tokenList.inpu...
int insertedLength = eventInfo.insertedLength();
383,515
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>Cards cardsToHand = new CardsImpl();<NEW_LINE>Target target = new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_CREATURE_YOUR_GRAVEYARD);<NEW_LINE>ta...
getCard(target.getFirstTarget());
1,855,495
final DescribeForecastResult executeDescribeForecast(DescribeForecastRequest describeForecastRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeForecastRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
144,387
public static <T> List<T> ofAll(Iterable<? extends T> elements) {<NEW_LINE><MASK><NEW_LINE>if (elements instanceof List) {<NEW_LINE>return (List<T>) elements;<NEW_LINE>} else if (elements instanceof ListView && ((ListView<T, ?>) elements).getDelegate() instanceof List) {<NEW_LINE>return (List<T>) ((ListView<T, ?>) elem...
Objects.requireNonNull(elements, "elements is null");