idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
613,912
public Map<String, Object> toMap() {<NEW_LINE>HashMap<String, Object> map = new HashMap<>();<NEW_LINE>map.put("appName", appName);<NEW_LINE>map.put("appVersion", appVersion);<NEW_LINE>map.put("cacheDir", cacheDir);<NEW_LINE>map.put("deviceHeight", deviceHeight);<NEW_LINE>map.put("deviceModel", deviceModel);<NEW_LINE><M...
map.put("deviceWidth", deviceWidth);
299,121
private void addFileVersion(FileProperties fileProperties) {<NEW_LINE>if (fileProperties.getChecksum() != null) {<NEW_LINE>logger.log(Level.FINER, "- /File: {0} (checksum {1})", new Object[] { fileProperties.getRelativePath(), fileProperties.getChecksum() });<NEW_LINE>} else {<NEW_LINE>logger.log(Level.FINER, "- /File:...
Level.INFO, " based on file version: " + lastFileVersion);
481,482
public void emit(PTXCompilationResultBuilder crb, PTXAssembler asm, Variable dest) {<NEW_LINE>PTXKind destElementKind = ((PTXKind) dest.getPlatformKind()).getElementKind();<NEW_LINE>PTXVectorSplit vectorSplitData = new PTXVectorSplit(dest);<NEW_LINE>for (int i = 0; i < vectorSplitData.vectorNames.length; i++) {<NEW_LIN...
vectorSplitData.newKind.getVectorLength());
1,021,101
protected RunnerAndConfigurationSettings createRunnerAndConfigurationSettings(@NotNull Project project, @NotNull Module module, @NotNull Client client, @Nullable AndroidDebuggerState inputState) {<NEW_LINE>String runConfigurationName = String.format("%s %s Debugger (%d)", Blaze.getBuildSystemName(project).getName(), ge...
getConfigurationModule().setModule(module);
1,632,508
final GetXssMatchSetResult executeGetXssMatchSet(GetXssMatchSetRequest getXssMatchSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getXssMatchSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
false), new GetXssMatchSetResultJsonUnmarshaller());
865,169
public static void main(String[] args) throws Exception {<NEW_LINE>// set up the streaming execution environment<NEW_LINE>final StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();<NEW_LINE>DataStream<String> inputStream = createSource(env);<NEW_LINE>DataStream<LogRecord> logRecords = ...
parts = value.split("\\s+");
205,444
private List<RebaseTodoLine> prepareCommand(ObjectId head) throws GitException, IOException {<NEW_LINE>Repository repository = getRepository();<NEW_LINE>ObjectReader or = repository.newObjectReader();<NEW_LINE>RevWalk walk = new RevWalk(or);<NEW_LINE>List<RevCommit> commits = new ArrayList<>(revisions.length);<NEW_LINE...
findCommit(repository, rev, walk);
1,087,408
public // //////////////////////////////////////////////////////<NEW_LINE>Ref listBackupRepository(final String backupServerId, final String backupName) {<NEW_LINE>LOG.debug(String.format("Trying to list backup repository for backup job [name: %s] in server [id: %s].", backupName, backupServerId));<NEW_LINE>try {<NEW_L...
.getMessage()), e);
1,216,245
public void run(RegressionEnvironment env) {<NEW_LINE>SupportContextListener listener = new SupportContextListener(env);<NEW_LINE>env.runtime().getContextPartitionService().addContextStateListener(listener);<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@name('ctx') @public create con...
env.compileDeploy("@name('s0') context MyContext select count(*) from SupportBean", path);
254,138
private BType createMatchingRecordType(BLangErrorFieldMatchPatterns errorFieldMatchPatterns) {<NEW_LINE>BRecordType <MASK><NEW_LINE>List<BLangSimpleVariable> typeDefFields = new ArrayList<>();<NEW_LINE>for (BLangNamedArgMatchPattern bindingPattern : errorFieldMatchPatterns.namedArgMatchPatterns) {<NEW_LINE>Name fieldNa...
detailRecordType = createAnonRecordType(errorFieldMatchPatterns.pos);
1,471,400
private CandidatePacketExtension createCandidate(Candidate<?> candidate) {<NEW_LINE>CandidatePacketExtension packet = new CandidatePacketExtension();<NEW_LINE>packet.setFoundation(candidate.getFoundation());<NEW_LINE>Component component = candidate.getParentComponent();<NEW_LINE>packet.setComponent(component.getCompone...
setPort(transportAddress.getPort());
767,436
private Varnode combineByteValues(Varnode[] byteValues, TaskMonitor monitor) throws CancelledException {<NEW_LINE>ArrayList<Varnode> resultList = new ArrayList<Varnode>();<NEW_LINE>Varnode v = byteValues[0];<NEW_LINE>int nextIndex = 1;<NEW_LINE>int size = 1;<NEW_LINE>while (nextIndex < byteValues.length) {<NEW_LINE>Var...
= new VarnodeOperation(op, inputs);
896,634
// # Input: n-byte message M, secret seed SK.seed, index idx, public seed PK.seed,<NEW_LINE>// address ADRS<NEW_LINE>// # Output: XMSS signature SIG_XMSS = (sig || AUTH)<NEW_LINE>SIG_XMSS xmss_sign(byte[] M, byte[] skSeed, int idx, byte[] pkSeed, ADRS adrs) {<NEW_LINE>byte[][] AUTH = new byte[engine.H_PRIME][];<NEW_LIN...
adrs.setType(ADRS.WOTS_HASH);
1,745,000
public OkHttpClient.Builder createBuilder(boolean disableSslValidation) {<NEW_LINE>if (disableSslValidation) {<NEW_LINE>try {<NEW_LINE>X509TrustManager disabledTrustManager = new DisableValidationTrustManager();<NEW_LINE>TrustManager[] trustManagers = new TrustManager[1];<NEW_LINE>trustManagers[0] = disabledTrustManage...
SSLSocketFactory disabledSSLSocketFactory = sslContext.getSocketFactory();
482,086
public void mouseWheelMoved(MouseWheelEvent e) {<NEW_LINE>if (!e.isAltDown()) {<NEW_LINE>super.mouseWheelMoved(e);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final MainView view = (MainView) e.getComponent();<NEW_LINE>final MapView map = (MapView) SwingUtilities.getAncestorOfClass(MapView.class, view);<NEW_LINE>if (map.usesL...
modeController.getExtension(NodeStyleController.class);
319,955
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>log.fine("Process Menu Request");<NEW_LINE>// Get Parameter: Exit<NEW_LINE>if (MobileUtil.getParameter(request, "Exit") != null) {<NEW_LINE>MobileUtil.createLoginPage(request, response, this, null...
getServletContext().getRequestDispatcher(url);
277,774
private void generateDynamicVirtualTable(String name, ValueType type, String enumConstants) {<NEW_LINE>codeWriter.println(".parent = {").indent();<NEW_LINE>generateRuntimeClassInitializer(type, enumConstants, false, 0);<NEW_LINE>codeWriter.outdent().println("}");<NEW_LINE>String[] parentClasses;<NEW_LINE>if (type insta...
getInterfaces().toArray(parentClasses);
337,362
public ModelResponse<T> invoke(ModelRequest request) {<NEW_LINE>Transaction t = newTransaction("ModelService", getClass().getSimpleName());<NEW_LINE>try {<NEW_LINE>URL url = buildUrl(request);<NEW_LINE>t.addData(url.toString());<NEW_LINE>InputStream in = Urls.forIO().connectTimeout(1000).readTimeout(10000).openStream(u...
= new ModelResponse<T>();
209,625
public void processElement(ProcessContext c) throws IOException {<NEW_LINE>KV<String, String> kv = c.element();<NEW_LINE>String tableName = kv.getKey();<NEW_LINE>Ddl ddl = c.sideInput(ddlView);<NEW_LINE>Map<String, List<TableManifest.Column>> tableColumnsMap = c.sideInput(tableColumnsView);<NEW_LINE>Table table = ddl.t...
StringReader(kv.getValue());
310,533
public void updateFiles(IJavaProject project, DocumentDescriptor[] updatedDocs) throws Exception {<NEW_LINE>List<CachedSymbol> generatedSymbols = new ArrayList<CachedSymbol>();<NEW_LINE>for (DocumentDescriptor updatedDoc : updatedDocs) {<NEW_LINE>String docURI = updatedDoc.getDocURI();<NEW_LINE>this.symbolHandler.remov...
(docURI)).toPath();
642,208
public List<AppDictItem> listWithAppDictWithPathWithAfterLocation(String appDict, Integer index, String... paths) throws Exception {<NEW_LINE>EntityManager em = this.entityManagerContainer().get(AppDictItem.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<AppDictItem> cq = cb.create...
(root).where(p);
1,586,140
static void writeObjects(String elt, XMLWriter writer, java.util.List<ObjectDescriptor> objects, java.util.List<PropertyDescriptor> properties) throws java.io.IOException {<NEW_LINE>for (ObjectDescriptor p : objects) {<NEW_LINE>java.util.List<String[]> attributes = new java.util.LinkedList<>();<NEW_LINE>String strId = ...
("proxy-options", p.proxyOptions));
1,873
protected File createProject(boolean external) throws IOException, SketchException {<NEW_LINE>tmpFolder = createTempBuildFolder(sketch);<NEW_LINE>System.out.println(AndroidMode.getTextString("android_build.error.build_folder", tmpFolder.getAbsolutePath()));<NEW_LINE>// Create the 'src' folder with the preprocessed code...
getPackageName(), preproc, false);
990,541
public void print(PrintWriter writerOut) {<NEW_LINE>if (isEmpty()) {<NEW_LINE>// System.out.println("no data found for: ");<NEW_LINE>// System.out.println("<srcPos sline=\""+javaStartLn()+"\" eline=\""+javaEndLn()+"\" spos=\""+javaStartPos()+"\"<NEW_LINE>// epos=\""+javaEndPos()+"\"/>");<NEW_LINE>// System.out.println(...
"\" epos=\"" + jimpleEndPos() + "\"/>");
1,013,473
private void createFileArea(SashForm sashForm, boolean staged) {<NEW_LINE>Composite composite = new Composite(sashForm, SWT.NONE);<NEW_LINE>composite.setLayout(new GridLayout(2, false));<NEW_LINE>StagingButtons buttons = null;<NEW_LINE>if (staged) {<NEW_LINE>buttons = new StagingButtons(composite, Messages.CommitDialog...
Messages.CommitDialog_UnstageSelectedMarker, Messages.CommitDialog_UnstageSelected);
1,259,509
void restart(long seed) {<NEW_LINE>// reset order:<NEW_LINE>// 1. active members<NEW_LINE>// 2. active members index<NEW_LINE>// 3. metadata group id ref<NEW_LINE>activeMembers = Collections.emptySet();<NEW_LINE>activeMembersCommitIndex = 0;<NEW_LINE>groups.clear();<NEW_LINE>initialCPMembers = null;<NEW_LINE>initializa...
getCpMetadataStore().persistMetadataGroupId(newMetadataGroupId);
353,874
public BeanDefinition parse(Element element, ParserContext pc) {<NEW_LINE>CompositeComponentDefinition compositeDef = new CompositeComponentDefinition(element.getTagName()<MASK><NEW_LINE>pc.pushContainingComponent(compositeDef);<NEW_LINE>boolean prePostAnnotationsEnabled = !element.hasAttribute(ATT_USE_PREPOST) || "tru...
, pc.extractSource(element));
1,775,549
public boolean isDCEInstalled(Path dir, boolean altjvm) {<NEW_LINE>Path jreDir;<NEW_LINE>if (isJDK(dir)) {<NEW_LINE>jreDir = dir.resolve("jre");<NEW_LINE>} else {<NEW_LINE>jreDir = dir;<NEW_LINE>}<NEW_LINE>if (altjvm) {<NEW_LINE>Path altvm32Path = jreDir.resolve(getDcevm32Path());<NEW_LINE>Path altvm64Path = jreDir.res...
clientPath.resolve(getBackupLibraryName());
1,474,898
public ExprEval eval(final ObjectBinding bindings) {<NEW_LINE>ExprEval bloomy = args.get(1).eval(bindings);<NEW_LINE>// be permissive for now, we can count more on this later when we are better at retaining complete complex<NEW_LINE>// type information everywhere<NEW_LINE>if (!bloomy.type().equals(BLOOM_FILTER_TYPE) ||...
(0).eval(bindings);
499,697
public void resubmitWorker(int workerNum) throws Exception {<NEW_LINE>Map<Integer, Integer> workerToStageMap = mantisJobMetaData.getWorkerNumberToStageMap();<NEW_LINE>if (workerToStageMap.containsKey(workerNum)) {<NEW_LINE>int stageNum = workerToStageMap.get(workerNum);<NEW_LINE>Optional<IMantisStageMetadata> stageMeta...
("Invalid stage {} in resubmit Worker request {}", stageNum, workerNum));
1,189,996
public Result call() throws Exception {<NEW_LINE>if (className == null || className.isEmpty())<NEW_LINE>throw new IllegalStateException("No class specified");<NEW_LINE>if (!getWorkspace().getPrimary().getClasses().containsKey(className))<NEW_LINE>throw new IllegalStateException("No class by the name '" + className + "'...
IllegalStateException("Could not read from '" + input + "'");
301,042
public void serialize(Json json) throws IOException {<NEW_LINE>StringBuilder key = new StringBuilder();<NEW_LINE>json.writeMapBegin();<NEW_LINE>// browser<NEW_LINE>json.<MASK><NEW_LINE>key.append(getClientType());<NEW_LINE>// extra true conditions<NEW_LINE>if (!extraTrueConditions.isEmpty()) {<NEW_LINE>json.writeMapEnt...
writeMapEntry(CLIENT, getClientType());
1,693,652
/*<NEW_LINE>* Registration form submit<NEW_LINE>*/<NEW_LINE>private void submitForm() {<NEW_LINE>logDebug("submit form!");<NEW_LINE>DatabaseHandler dbH = DatabaseHandler.getDbHandler(context.getApplicationContext());<NEW_LINE>dbH.clearCredentials();<NEW_LINE>if (!validateForm()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>I...
().toString() : null;
503,472
private void drawBaconHistogram(double[] histogram, int INFINITY_ID, double maxFrequency) {<NEW_LINE>StdDraw.setCanvasSize(1024, 512);<NEW_LINE>double minX = -3;<NEW_LINE><MASK><NEW_LINE>double middleX = minX + (maxX - minX) / 2;<NEW_LINE>double minY = -7000;<NEW_LINE>double maxY = maxFrequency + 6000;<NEW_LINE>double ...
double maxX = histogram.length + 2;
573,292
protected void renderSafe(FluidTankTileEntity te, float partialTicks, PoseStack ms, MultiBufferSource buffer, int light, int overlay) {<NEW_LINE>if (!te.isController())<NEW_LINE>return;<NEW_LINE>if (!te.window)<NEW_LINE>return;<NEW_LINE>InterpolatedChasingValue fluidLevel = te.getFluidLevel();<NEW_LINE>if (fluidLevel =...
+ te.width - 2 * tankHullWidth;
531,094
public CreateDatabaseResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateDatabaseResult createDatabaseResult = new CreateDatabaseResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso...
int originalDepth = context.getCurrentDepth();
617,574
public void fillHalfRecords(final ContextAccumulator fullContextAccumulator, final int contextSize) {<NEW_LINE>final String padding = StringUtil.repeatCharNTimes('N', contextSize);<NEW_LINE>for (Map.Entry<String, AlignmentAccumulator[]> fullContext : fullContextAccumulator.artifactMap.entrySet()) {<NEW_LINE>final Strin...
] fullAlignmentAccumulators = fullContext.getValue();
1,057,038
private Message<?> checkHeaders(Object result, String topic, Object source) {<NEW_LINE>// NOSONAR (complexity)<NEW_LINE>Message<?> reply = (Message<?>) result;<NEW_LINE>MessageHeaders headers = reply.getHeaders();<NEW_LINE>boolean needsTopic = headers.get(KafkaHeaders.TOPIC) == null;<NEW_LINE>boolean sourceIsMessage = ...
setHeader(KafkaHeaders.TOPIC, topic);
225,964
private MethodHandle lookup(int flavor, String name, Class<?> receiver) throws Throwable {<NEW_LINE>switch(flavor) {<NEW_LINE>case METHOD_CALL:<NEW_LINE>return Def.lookupMethod(painlessLookup, functions, constants, methodHandlesLookup, type(), receiver, name, args);<NEW_LINE>case LOAD:<NEW_LINE>return Def.<MASK><NEW_LI...
lookupGetter(painlessLookup, receiver, name);
1,456,290
public TypeVariableBinding[] createTypeVariables(TypeParameter[] typeParameters, Binding declaringElement) {<NEW_LINE>// https://bugs.eclipse.org/bugs/show_bug.cgi?id=324850, If they exist at all, process type parameters irrespective of source level.<NEW_LINE>if (typeParameters == null || typeParameters.length == 0)<NE...
TypeDeclaration typeDeclaration = sourceTypeBinding.scope.referenceContext;
135,008
final RegisterThingResult executeRegisterThing(RegisterThingRequest registerThingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerThingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
false), new RegisterThingResultJsonUnmarshaller());
156,863
public void rowResponse(final byte[] row, final BackendConnection conn) {<NEW_LINE>if (errorRepsponsed.get() || this.isFail()) {<NEW_LINE>// the connection has been closed or set to "txInterrupt" properly<NEW_LINE>// in tryErrorFinished() method! If we close it here, it can<NEW_LINE>// lead to tx error such as blocking...
MiddlerResultHandler middlerResultHandler = session.getMiddlerResultHandler();
72,579
public void initShaderProgram() {<NEW_LINE>if (program == 0) {<NEW_LINE>program = GL20.glCreateProgram();<NEW_LINE>int vtxShdr = GL20.glCreateShader(GL20.GL_VERTEX_SHADER);<NEW_LINE>int frgShdr = GL20.glCreateShader(GL20.GL_FRAGMENT_SHADER);<NEW_LINE>GL20.glShaderSource(vtxShdr, "#version 130\n" + "\n" + "uniform vec4 ...
GL20.glGetShaderInfoLog(vtxShdr, 1024);
1,750,894
private LinkedList<LinkedList<Node>> tarjans(LinkedList<LinkedList<Node>> components, LinkedList<Node> S, DirectedGraph graph, Node f, int[] index, int[] low_index, HashMap<Node, Integer> indices) {<NEW_LINE>int id = indices.get(f);<NEW_LINE>index[id] = count;<NEW_LINE>low_index[id] = count;<NEW_LINE>count++;<NEW_LINE>...
x], low_index[id]);
720,785
public void save(RowBasedPartition part, MatrixPartitionMeta partMeta, PSMatrixSaveContext saveContext, DataOutputStream output) throws IOException {<NEW_LINE>List<Integer> rowIds = saveContext.getRowIndexes();<NEW_LINE>ServerRowsStorage rows = part.getRowsStorage();<NEW_LINE>if (rowIds == null || rowIds.isEmpty()) {<N...
SaveType.SPARSE.getTypeId());
452,720
public void onCreate() {<NEW_LINE>super.onCreate();<NEW_LINE>setting = OldMainActivity.Setting;<NEW_LINE>layout_functionbar = OldMainActivity.CURRENT_ACTIVITY.get().findViewById(R.id.layout_functions);<NEW_LINE>buttonUser = layout_functionbar.findViewById(R.id.main_button_user);<NEW_LINE>buttonPlugin = layout_functionb...
findViewById(R.id.main_button_setting);
1,337,676
public DescribePlaceIndexResult describePlaceIndex(DescribePlaceIndexRequest describePlaceIndexRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePlaceIndexRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.g...
DescribePlaceIndexRequestMarshaller().marshall(describePlaceIndexRequest);
1,341,527
public <T> T runInPage(ChromeInstanceHandle chromeInstance, Function<ChromeDevToolsService, T> tabAction) {<NEW_LINE>return chromeInstance.runWithChromeInstance(chromeService -> {<NEW_LINE>try (ChromeDevToolsServiceImpl browserDevToolsService = getBrowserDevToolsService(chromeService)) {<NEW_LINE><MASK><NEW_LINE>String...
Target target = browserDevToolsService.getTarget();
1,173,465
private void createTempDeclaration(final CompilationUnitChange newChange, final RefactoringStatus status) {<NEW_LINE>List<IASTFragment> matchingExpressions = replaceAllOccurrences ? getMatchingExpressions() : Collections.singletonList(getSelectedFragment());<NEW_LINE>int insertLoc = insertAt(matchingExpressions, status...
, createExpressionText(prefix, status));
773,299
public void run(MessageReply reply) {<NEW_LINE>if (!reply.isSuccess()) {<NEW_LINE>chain.fail(reply.getError());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>VirtualRouterAsyncHttpCallReply re = reply.castReply();<NEW_LINE>SyncSNATRsp ret = re.toResponse(SyncSNATRsp.class);<NEW_LINE>if (!ret.isSuccess()) {<NEW_LINE>ErrorCode er...
), ret.getError());
1,769,427
private static String resolveHostName() {<NEW_LINE>// Ideally, we'd use InetAddress.getLocalHost, but this does a reverse DNS lookup. On Windows<NEW_LINE>// and Linux this is apparently pretty fast, so we don't get random hangs. On OS X it's<NEW_LINE>// amazingly slow. That's less than ideal. Figure things out and cach...
log(WARNING, "Failed to resolve host name", e);
1,652,476
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select intPrimitive, s1.* as s1stream, theString, symbol as sym, s0.* as s0stream from SupportBean#length(3) as s0, " + "SupportMarketDataBean#keepall as s1";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.assertStatement("...
, type.getPropertyType("s1stream"));
1,576,668
public void endVisit(JTryStatement x, Context ctx) {<NEW_LINE>// 1) Remove catch blocks whose exception type is not instantiable.<NEW_LINE>List<JTryStatement.CatchClause> catchClauses = x.getCatchClauses();<NEW_LINE>Iterator<JTryStatement.CatchClause<MASK><NEW_LINE>while (itClauses.hasNext()) {<NEW_LINE>JTryStatement.C...
> itClauses = catchClauses.iterator();
684,453
private IQualityInvoiceLineGroup createQualityInvoiceLineGroup_WithholdingAmount() {<NEW_LINE>final ILagerKonfQualityBasedConfig config = getQualityBasedConfig();<NEW_LINE>if (config.getOverallNumberOfInvoicings() < 2) {<NEW_LINE>logger.debug("Nothing to do as ILagerKonfQualityBasedConfig {} has OverallNumberOfInvoicin...
IInvoicingItem withholdingItem = config.getWithholdingProduct();
418,296
public void validateData(final String trxName) {<NEW_LINE>if (!isActive()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!isUnique()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>//<NEW_LINE>final StringBuilder sqlGroupBy = new StringBuilder();<NEW_LINE>for (final MIndexColumn c : getIndexColumns()) {<NEW_LINE>if (sqlGroupBy.le...
sql.toString(), trxName);
801,368
private static AsyncResult<ModuleImportProvider> showImportTarget(@Nonnull List<ModuleImportProvider> providers) {<NEW_LINE>ComboBox<ModuleImportProvider> box = ComboBox.create(providers);<NEW_LINE>box.setRender((render, index, item) -> {<NEW_LINE>assert item != null;<NEW_LINE>render.withIcon(item.getIcon());<NEW_LINE>...
(box.getValue()));
240,406
boolean appendNewLeadershipTermEvent(final long leadershipTermId, final long timestamp, final long termBaseLogPosition, final int leaderMemberId, final int logSessionId, final TimeUnit timeUnit, final int appVersion) {<NEW_LINE>final int length = MessageHeaderEncoder.ENCODED_LENGTH + NewLeadershipTermEventEncoder.BLOCK...
} while (--attempts > 0);
699,202
default void ifThenElseDec(BoolVar[] c, IntVar[] x, IntVar y) {<NEW_LINE>Tuples tuples = new Tuples();<NEW_LINE>int univ = Math.max(2, y.getUB() + 1);<NEW_LINE>tuples.setUniversalValue(univ);<NEW_LINE>int[] t = new int[c.length + 1];<NEW_LINE>Arrays.fill(t, 0);<NEW_LINE>t[c.length] = c.length;<NEW_LINE>tuples.add(t.clo...
Arrays.fill(t, univ);
1,491,830
public static void register() {<NEW_LINE>final BeanManager beanManager = BeanManager.getInstance();<NEW_LINE>final LoginCheckMidware loginCheck = beanManager.getReference(LoginCheckMidware.class);<NEW_LINE>final PermissionMidware permissionMidware = beanManager.getReference(PermissionMidware.class);<NEW_LINE>final CSRF...
beanManager.getReference(CSRFMidware.class);
1,378,547
public static Icon cropIcon(@Nonnull Icon icon, int maxWidth, int maxHeight) {<NEW_LINE>if (icon.getIconHeight() <= maxHeight && icon.getIconWidth() <= maxWidth) {<NEW_LINE>return icon;<NEW_LINE>}<NEW_LINE>Image image = toImage(icon);<NEW_LINE>if (image == null)<NEW_LINE>return icon;<NEW_LINE>double scale = 1f;<NEW_LIN...
Graphics2D g = bi.createGraphics();
503,078
private void tryMarkLedgerUnderreplicatedAsync(final String path, final Collection<String> missingReplicas, final CompletableFuture<Void> finalFuture) {<NEW_LINE>final UnderreplicatedLedgerFormat.<MASK><NEW_LINE>if (conf.getStoreSystemTimeAsLedgerUnderreplicatedMarkTime()) {<NEW_LINE>builder.setCtime(System.currentTime...
Builder builder = UnderreplicatedLedgerFormat.newBuilder();
460,052
private JComponent buildProjectOverview() {<NEW_LINE>metrics = new MetricsPanel();<NEW_LINE>JXToolBar toolbar = buildOverviewToolbar();<NEW_LINE>metrics.add(toolbar, BorderLayout.NORTH);<NEW_LINE>MetricsSection section = metrics.addSection("Project Summary");<NEW_LINE>section.addMetric(ModelItemIconFactory.getIcon(Proj...
(RestMockResponse.class), REST_MOCKRESPONSES_STATISTICS);
1,212,059
private ComposedAdapter createComposedAdapter(RecyclerView rv, OnListItemClickMessageListener clickListener) {<NEW_LINE>RecyclerViewDragDropManager dragMgr = new RecyclerViewDragDropManager();<NEW_LINE>RecyclerViewDragDropManager dragMgr2 = new RecyclerViewDragDropManager();<NEW_LINE>RecyclerViewSwipeManager swipeMgr =...
addAdapter(new MySectionHeaderAdapter("Draggable - 2"));
1,117,000
public void refilter() {<NEW_LINE>if (filter == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (filter.eventUpdate != null) {<NEW_LINE>filter.eventUpdate.cancel();<NEW_LINE>filter.text = filter.nextText;<NEW_LINE>filter.checker.filterSet(filter.text);<NEW_LINE>}<NEW_LINE>filter.eventUpdate = null;<NEW_LINE>boolean cha...
listRemoves = new ArrayList<>();
1,726,988
private boolean isLastCommitNotYetBuild(Job<?, ?> project, MergeRequestHook hook) {<NEW_LINE>MergeRequestObjectAttributes objectAttributes = hook.getObjectAttributes();<NEW_LINE>if (objectAttributes == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Action action = objectAttributes.getAction();<NEW_LINE>if (skipBuilt...
project, lastCommit.getId());
881,103
public IPrintingService findPrintingService(final ProcessInfo pi) {<NEW_LINE>final <MASK><NEW_LINE>final int AD_Client_ID = Env.getAD_Client_ID(ctx);<NEW_LINE>final int AD_Org_ID = Env.getAD_Org_ID(ctx);<NEW_LINE>final int AD_Role_ID = Env.getAD_Role_ID(ctx);<NEW_LINE>final int AD_User_ID = Env.getAD_User_ID(ctx);<NEW_...
Properties ctx = Env.getCtx();
1,452,164
private void readElement(IConfigurationElement element) {<NEW_LINE>if (ELEMENT_TEMPLATEINFO.equals(element.getName())) {<NEW_LINE>// either a local path or remote git url needs to be defined<NEW_LINE>String path = null;<NEW_LINE>Bundle bundle = Platform.getBundle(element.getNamespaceIdentifier());<NEW_LINE>IConfigurati...
remotePaths = element.getChildren(ELEMENT_REMOTE);
1,500,648
public Control createViewControl(Composite parent, ViewMode viewMode) {<NEW_LINE>Composite container = new Composite(parent, SWT.NONE);<NEW_LINE>TableColumnLayout layout = new TableColumnLayout();<NEW_LINE>container.setLayout(layout);<NEW_LINE>trades = new TableViewer(container, SWT.FULL_SELECTION);<NEW_LINE>ColumnEdit...
setContentProvider(ArrayContentProvider.getInstance());
252,458
final DeleteSessionResult executeDeleteSession(DeleteSessionRequest deleteSessionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSessionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,790,720
final GetChangeTokenResult executeGetChangeToken(GetChangeTokenRequest getChangeTokenRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getChangeTokenRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetChangeToken");
1,336,419
private void findNextMatch(boolean doHighlight) {<NEW_LINE>int startOffset;<NEW_LINE>if (lastMatch != null && globalFlag) {<NEW_LINE>// next match might be on the same line<NEW_LINE>startOffset = lastMatch.getRightBound().getModelOffset() + replaceOffset;<NEW_LINE>// performing a substitution could change our next star...
exposeModelPosition(result.getLeftBound());
1,140,071
private void exportEvent(final LoggedEvent event) {<NEW_LINE>final ActorFuture<Boolean> wrapRetryFuture = recordWrapStrategy.runWithRetry(() -> {<NEW_LINE>recordExporter.wrap(event);<NEW_LINE>return true;<NEW_LINE>}, this::isClosed);<NEW_LINE>actor.runOnCompletion(wrapRetryFuture, (b, t) -> {<NEW_LINE>assert t == null ...
actor.submit(this::readNextEvent);
391,144
private void dbUpdateOrgs(final ImportRecordsSelection selection) {<NEW_LINE>{<NEW_LINE>final String sql = "UPDATE I_BPartner i " + "SET AD_Org_ID=(SELECT AD_Org_ID FROM AD_Org o" + " WHERE i.OrgValue=o.Value AND o.AD_Client_ID IN (0, i.AD_Client_ID)) " + "WHERE OrgValue IS NOT NULL" + " AND " + COLUMNNAME_I_IsImported...
"<>'Y' " + selection.toSqlWhereClause("i");
272,575
public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {<NEW_LINE>switch(holder.getItemViewType()) {<NEW_LINE>case 0:<NEW_LINE>{<NEW_LINE>TextInfoPrivacyCell cell = (TextInfoPrivacyCell) holder.itemView;<NEW_LINE>cell.setBackgroundDrawable(Theme.getThemedDrawable(mContext, R.drawable.greydivider_bot...
textCell = (TextSettingsCell) holder.itemView;
251,366
public void clear(int fromIndex, int toIndex) {<NEW_LINE>checkRange(fromIndex, toIndex);<NEW_LINE>if (fromIndex == toIndex) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int first = wordIndex(fromIndex);<NEW_LINE>if (first >= array.length) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int last = wordIndex(toIndex);<NEW_LINE>if (last...
first + 1, last, 0);
390,929
private Map<String, FilteringPropertyFilter> createSubfilters(final String parent, final Class<?> entityClass, final Map<String, ObjectGraph> entitySubgraphs, final Set<String> processed) {<NEW_LINE>final Map<String, FilteringPropertyFilter> subfilters = new HashMap<>();<NEW_LINE>for (final Map.Entry<String, ObjectGrap...
String fieldName = entry.getKey();
552,725
// App class is for internal use only; it's not actually deprecated<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>static void register(final AtomicReference<Stage> stage, final AtomicReference<WebView> view) {<NEW_LINE>ProxyAuth.add(settings.get().proxy());<NEW_LINE>if (isMonocle() && com.sun.glass.ui.Application....
instance().exception(t);
378,786
private static void printTweets(List<User> users) {<NEW_LINE>for (Iterator<User> iterator = users.iterator(); iterator.hasNext(); ) {<NEW_LINE>User user = (User) iterator.next();<NEW_LINE>Iterator<Tweets> tweets = users.get(0).getTweets().iterator();<NEW_LINE>int counter = 1;<NEW_LINE>while (tweets.hasNext()) {<NEW_LIN...
"\t\t Tweeted at ->" + rec.getTweetDate());
594,642
private static List<? extends TypeMirror> computeMethodInvocation(Set<ElementKind> types, CompilationInfo info, TreePath parent, Tree error, int offset) {<NEW_LINE>MethodInvocationTree nat = (MethodInvocationTree) parent.getLeaf();<NEW_LINE>int realArgumentError = -1;<NEW_LINE>int i = 0;<NEW_LINE>for (Tree param : nat....
info, parent, proposedTypes, proposedIndex);
1,406,710
public void onCreate(Bundle b) {<NEW_LINE>// must be applied before setContentView<NEW_LINE>super.onCreate(b);<NEW_LINE>ContextUtils contextUtils = new ContextUtils(this);<NEW_LINE>contextUtils.setAppLanguage(_appSettings.getLanguage());<NEW_LINE><MASK><NEW_LINE>ButterKnife.bind(this);<NEW_LINE>toolbar.setTitle(R.strin...
setContentView(R.layout.activity_settings);
1,151,981
final DeleteLanguageModelResult executeDeleteLanguageModel(DeleteLanguageModelRequest deleteLanguageModelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteLanguageModelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,160,858
public com.squareup.okhttp.Call geNursingHomeCall(String albertaApiKey, String _id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map vari...
, progressListener)).build();
185,704
private void drawVerticalScrollbar(Canvas canvas) {<NEW_LINE>int viewWidth = mRecyclerViewWidth;<NEW_LINE>int left = viewWidth - mVerticalThumbWidth;<NEW_LINE>int top = Math.max(<MASK><NEW_LINE>mVerticalThumbDrawable.setBounds(0, 0, mVerticalThumbWidth, mVerticalThumbHeight);<NEW_LINE>mVerticalTrackDrawable.setBounds(0...
0, mVerticalThumbCenterY - mVerticalThumbHeight / 2);
1,714,858
public void resolveLink(String link, Promise promise) {<NEW_LINE>try {<NEW_LINE>FirebaseDynamicLinks.getInstance().getDynamicLink(Uri.parse(link)).addOnCompleteListener(task -> {<NEW_LINE>if (task.isSuccessful()) {<NEW_LINE><MASK><NEW_LINE>// Note: link == null if link invalid, isSuccessful is only false on processing<...
PendingDynamicLinkData linkData = task.getResult();
1,589,962
public void marshall(TransformJob transformJob, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (transformJob == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(transformJob.getTransformJobName(), TRANSFORMJOB...
transformJob.getTransformStartTime(), TRANSFORMSTARTTIME_BINDING);
118,734
protected void installDefaults() {<NEW_LINE>super.installDefaults();<NEW_LINE>LookAndFeel.installBorder(tree, "Tree.border");<NEW_LINE>selectionBackground = UIManager.getColor("Tree.selectionBackground");<NEW_LINE>selectionForeground = UIManager.getColor("Tree.selectionForeground");<NEW_LINE>selectionInactiveBackground...
.scale(getRightChildIndent()));
1,340,030
public static <M extends DataFrameRegression> RegressionValidation<M> of(Formula formula, DataFrame train, DataFrame test, BiFunction<Formula, DataFrame, M> trainer) {<NEW_LINE>double[] testy = formula.y(test).toDoubleArray();<NEW_LINE>long start = System.nanoTime();<NEW_LINE>M model = trainer.apply(formula, train);<NE...
] prediction = new double[n];
204,647
public void onGlobalLayout() {<NEW_LINE>if (isInit.get() <= 0)<NEW_LINE>return;<NEW_LINE>if (!isSetLayoutWidth) {<NEW_LINE>ViewGroup.LayoutParams layoutParams1 = new ViewGroup.LayoutParams(getWidth(), getHeight());<NEW_LINE>addView(mMovieScrollContentView, layoutParams1);<NEW_LINE>isSetLayoutWidth = true;<NEW_LINE>isIn...
2 - getPaddingRight(), 0);
379,677
public void loadTable(ResultSet rs) {<NEW_LINE>if (m_layout == null)<NEW_LINE>throw new UnsupportedOperationException("Layout not defined");<NEW_LINE>// Clear Table<NEW_LINE>setRowCount(0);<NEW_LINE>//<NEW_LINE>try {<NEW_LINE>while (rs.next()) {<NEW_LINE>int row = getRowCount();<NEW_LINE>setRowCount(row + 1);<NEW_LINE>...
= new KeyNamePair(key, display);
676,804
public Map.Entry<K, List<V>> convert(String input) throws OptionsParsingException {<NEW_LINE>int pos = input.indexOf("=");<NEW_LINE>if (allowEmptyKeys == AllowEmptyKeys.NO && pos <= 0) {<NEW_LINE>throw new OptionsParsingException("Must be in the form of a 'key=value[,value]' assignment");<NEW_LINE>}<NEW_LINE>String key...
input.substring(0, pos);
797,308
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {<NEW_LINE>tag++;<NEW_LINE>if (i == SPACER) {<NEW_LINE>View v = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.spacer, viewGroup, false);<NEW_LINE>return new SpacerViewHolder(v);<NEW_LINE>} else if (i == LOADING_SPINNER) {<NEW_L...
layout.loadingmore, viewGroup, false);
78,390
protected Object doNativeAOT(LLVMFunctionDescriptor descriptor, Object[] arguments, @Cached("createToNativeNodes()") LLVMNativeConvertNode[] toNative, @Cached("createFromNativeNode()") LLVMNativeConvertNode fromNative, @Cached("isPointerReturnType()") boolean isPointerReturnType, @CachedLibrary(limit = "1") SignatureLi...
nativeArgs = prepareNativeArguments(arguments, toNative);
238,799
public void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>ColorUtil.setupAntialiasing(g);<NEW_LINE>String s = doGetText();<NEW_LINE>Insets ins = getInsets();<NEW_LINE>int x = ins.left;<NEW_LINE>int w = getWidth() - (ins.left + ins.right);<NEW_LINE>int h = getHeight();<NEW_LINE>int txtW = Defau...
s, getFont(), this);
1,101,368
public int argmin() {<NEW_LINE>IntDoubleVectorStorage idstorage = (IntDoubleVectorStorage) storage;<NEW_LINE>if (idstorage.size() == 0)<NEW_LINE>return -1;<NEW_LINE>double minval = Double.MAX_VALUE;<NEW_LINE>int minidx = -1;<NEW_LINE>if (idstorage.isDense()) {<NEW_LINE>double[] val = idstorage.getValues();<NEW_LINE>int...
Entry entry = iter.next();
1,365,528
public OperationResult execute(final MessageFrame frame, final EVM evm) {<NEW_LINE>final long memOffset = clampedToLong(frame.popStackItem());<NEW_LINE>final long sourceOffset = clampedToLong(frame.popStackItem());<NEW_LINE>final long numBytes = clampedToLong(frame.popStackItem());<NEW_LINE>final Bytes returnData = fra...
Math.addExact(sourceOffset, numBytes);
664,957
public void addFormForAddAccount() {<NEW_LINE>gridRowFrom = gridRow + 1;<NEW_LINE>addTradeCurrencyComboBox();<NEW_LINE>currencyComboBox.setItems(FXCollections.observableArrayList<MASK><NEW_LINE>InputTextField contactField = addInputTextField(gridPane, ++gridRow, Res.get("payment.cashByMail.contact"));<NEW_LINE>contactF...
(CurrencyUtil.getAllSortedFiatCurrencies()));
1,501,429
final UpdateSimulationApplicationResult executeUpdateSimulationApplication(UpdateSimulationApplicationRequest updateSimulationApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateSimulationApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
false), new UpdateSimulationApplicationResultJsonUnmarshaller());
1,252,177
public CodegenExpression make(CodegenMethodScope parent, SAIFFInitializeSymbol symbols, CodegenClassScope classScope) {<NEW_LINE>CodegenMethod method = parent.makeChild(HistoricalDataPlanNode.EPTYPE, <MASK><NEW_LINE>method.getBlock().declareVarNewInstance(HistoricalDataPlanNode.EPTYPE, "node").exprDotMethod(ref("node")...
this.getClass(), classScope);
484,733
private static StringBuffer createSuperMethodReferences(final IMethod method) throws JavaModelException {<NEW_LINE>IType type = method.getDeclaringType();<NEW_LINE>ITypeHierarchy hierarchy = SuperTypeHierarchyCache.getTypeHierarchy(type);<NEW_LINE>final MethodOverrideTester tester = SuperTypeHierarchyCache.getMethodOve...
= superInterfaceMethods.size() != 0;
191,400
public Request<DescribeClusterParametersRequest> marshall(DescribeClusterParametersRequest describeClusterParametersRequest) {<NEW_LINE>if (describeClusterParametersRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeClusterParameters...
(describeClusterParametersRequest.getParameterGroupName()));