idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,595,085
private ULocale addLikelySubtags(ULocale languageCode) {<NEW_LINE>// max("und") = "en_Latn_US", and since matching is based on maximized tags, the undefined<NEW_LINE>// language would normally match English. But that would produce the counterintuitive results<NEW_LINE>// that getBestMatch("und", LocaleMatcher("it,en")...
== 0 ? "ZZ" : region));
1,041,502
private void signIn(String email, String password) {<NEW_LINE>// [START sign_in_with_email]<NEW_LINE>mAuth.signInWithEmailAndPassword(email, password).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onComplete(@NonNull Task<AuthResult> task) {<NEW_LIN...
"signInWithEmail:failure", task.getException());
1,547,128
public static boolean hasBlocks(ItemStack stack, Player player, List<BlockPos> blocks) {<NEW_LINE>if (player.getAbilities().instabuild) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Block block = getBlock(stack);<NEW_LINE><MASK><NEW_LINE>int required = blocks.size();<NEW_LINE>int current = 0;<NEW_LINE>List<IBlockProvider...
ItemStack reqStack = new ItemStack(block);
928,722
public void fillRadialGradient(int startColor, int endColor, int x, int y, int width, int height, int startAngle, int arcAngle) {<NEW_LINE>boolean antialias = paint.isAntiAlias();<NEW_LINE>paint.setStyle(Paint.Style.FILL);<NEW_LINE>paint.setAntiAlias(false);<NEW_LINE>paint.setAlpha(255);<NEW_LINE>paint.setShader(new Ra...
x + width, y + height);
330,176
public void init(Base base) {<NEW_LINE>// engine = new QuickTimeEngine(this);<NEW_LINE>engine = new FFmpegEngine(this);<NEW_LINE>// initComponents(base.getActiveEditor() == null);<NEW_LINE>initComponents(base == null);<NEW_LINE>((JComponent) getContentPane()).setBorder(new EmptyBorder(12, 18, 18, 18));<NEW_LINE>imageFo...
enabled = !originalSizeCheckBox.isSelected();
1,503,634
private static a createImageLink(String AD_Language, String name, String js_command, boolean enabled, boolean pressed) {<NEW_LINE>a img = new a("#"<MASK><NEW_LINE>if (!pressed || !enabled)<NEW_LINE>// css<NEW_LINE>img.setID("imgButtonLink");<NEW_LINE>else<NEW_LINE>// css<NEW_LINE>img.setID("imgButtonPressedLink");<NEW_...
, createImage(AD_Language, name));
1,670,611
public void saveOutput(String fileName) {<NEW_LINE>if (!isJavaLanguage()) {<NEW_LINE>String incfilePath = fileName.replace(".cc", ".h");<NEW_LINE>String incfileName = new File(incfilePath).getName();<NEW_LINE>includeBuffer.insert(0, "#define " + incfileName.replace('.', '_').toUpperCase() + "\n");<NEW_LINE>includeBuffe...
.stringValue("NAMESPACE_OPEN") + "\n");
1,030,050
private static void tryAssertion56(RegressionEnvironment env, String stmtText, String outputLimit, AtomicInteger milestone) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>env.compileDeploy(stmtText).addListener("s0");<NEW_LINE>String[] fields = new String[] { "sum(price)" };<NEW_LINE>ResultAssertTestResult expected = new Resul...
58d }, { 59d } });
1,552,019
public void run() {<NEW_LINE>EPRuntime runtime = EPRuntimeProvider.getRuntime(this.getClass().getSimpleName(), configuration);<NEW_LINE>runtime.initialize();<NEW_LINE>// allow time for start up<NEW_LINE>threadSleep(100);<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String eplContext = "@public create c...
compile(eplContext, configuration, path);
517,628
private static void usage() {<NEW_LINE>System.out.println("");<NEW_LINE>System.out.println("java no.priv.garshol.duke.genetic.Driver [options] <cfgfile>");<NEW_LINE>System.out.println("");<NEW_LINE>System.out.println(" --testfile=<file> use a test file for evaluation");<NEW_LINE>System.out.println(" --active ...
System.out.println(" --output=<file> file to write best configuration to");
1,145,825
public void loadTableInfo(BankInfo bi, Timestamp payDate, ValueNamePair paymentRule, boolean onlyDue, int C_BPartner_ID, KeyNamePair docType, IMiniTable miniTable) {<NEW_LINE>log.config("");<NEW_LINE>// not yet initialized<NEW_LINE>if (m_sql == null)<NEW_LINE>return;<NEW_LINE>String sql = m_sql;<NEW_LINE>// Parameters<...
.setInt(index++, C_BPartner_ID);
1,270,820
public void deserialize(ByteBuffer buffer) throws IllegalPathException {<NEW_LINE>int length = buffer.getInt();<NEW_LINE>byte[] bytes = new byte[length];<NEW_LINE>buffer.get(bytes);<NEW_LINE>path = new PartialPath(new String(bytes));<NEW_LINE>dataType = TSDataType.values()[buffer.get()];<NEW_LINE>encoding = TSEncoding....
.index = buffer.getLong();
1,757,681
protected IStatus run(IProgressMonitor monitor) {<NEW_LINE>int priority = Thread<MASK><NEW_LINE>Thread.currentThread().setPriority(Thread.MIN_PRIORITY);<NEW_LINE>IDocument document = textViewer != null ? textViewer.getDocument() : null;<NEW_LINE>if (document == null) {<NEW_LINE>return Status.CANCEL_STATUS;<NEW_LINE>}<N...
.currentThread().getPriority();
1,178,422
final StopLoggingResult executeStopLogging(StopLoggingRequest stopLoggingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopLoggingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,583,950
protected void checkScrollForReport() {<NEW_LINE>if (!mEnableScrollForReport) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int startEdgePos = (int) PixelUtil.px2dp(mParentRecyclerView.mOffsetY);<NEW_LINE>int endEdgePos = (int) PixelUtil.px2dp(mParentRecyclerView.getHeight() + mParentRecyclerView.mOffsetY);<NEW_LINE>int first...
px2dp(getItemHeight(i)));
1,410,129
private void renderReport() throws Exception {<NEW_LINE>AMedia media = null;<NEW_LINE>Listitem selected = previewType.getSelectedItem();<NEW_LINE>if (selected == null || "PDF".equals(selected.getValue())) {<NEW_LINE>String path = System.getProperty("java.io.tmpdir");<NEW_LINE>String prefix = makePrefix(m_reportEngine.g...
"Path=" + path + " Prefix=" + prefix);
511,172
HashtableOfObject addQueryResults(char[][] categories, char[] key, int matchRule, HashtableOfObject results) {<NEW_LINE>// assumed the disk index already skipped over documents which have been added/changed/deleted<NEW_LINE>// results maps a word -> EntryResult<NEW_LINE>Object[] paths = this.docsToReferences.keyTable;<...
[] word = words[k];
935,226
public static ListQueryHistoryResponse unmarshall(ListQueryHistoryResponse listQueryHistoryResponse, UnmarshallerContext _ctx) {<NEW_LINE>listQueryHistoryResponse.setRequestId(_ctx.stringValue("ListQueryHistoryResponse.RequestId"));<NEW_LINE>listQueryHistoryResponse.setSuccess(_ctx.booleanValue("ListQueryHistoryRespons...
("ListQueryHistoryResponse.Data[" + i + "].Creator"));
928,834
private void dynInit(int C_BPartner_ID) {<NEW_LINE>log.config("C_BPartner_ID=" + C_BPartner_ID);<NEW_LINE>if (C_BPartner_ID != 0) {<NEW_LINE>int ShelfLifeMinPct = 0;<NEW_LINE>int ShelfLifeMinDays = 0;<NEW_LINE>String sql = "SELECT bp.ShelfLifeMinPct, bpp.ShelfLifeMinPct, bpp.ShelfLifeMinDays " + "FROM C_BPartner bp " +...
ShelfLifeMinPct = rs.getInt(1);
1,844,432
public void extractKeyParts(final CacheKeyBuilder keyBuilder, final Object targetObject, final Object[] params) {<NEW_LINE>final Object trxNameObj = params[parameterIndex];<NEW_LINE>String trxName = null;<NEW_LINE>boolean error = false;<NEW_LINE>Exception errorException = null;<NEW_LINE>if (trxNameObj == null) {<NEW_LI...
).setAnnotation(CacheTrx.class);
472,575
public Page pack(Array<Rect> rects, FreeRectChoiceHeuristic method) {<NEW_LINE>rects = new Array(rects);<NEW_LINE>while (rects.size > 0) {<NEW_LINE>int bestRectIndex = -1;<NEW_LINE>Rect bestNode = new Rect();<NEW_LINE>bestNode.score1 = Integer.MAX_VALUE;<NEW_LINE>bestNode.score2 = Integer.MAX_VALUE;<NEW_LINE>// Find th...
(rects.get(i));
978,133
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>inflater = (LayoutInflater) this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>scroll = (ScrollView) findViewById(R.id.entry_scroll);<NEW_LINE>ImageButton add = (ImageButton) findViewById(R.id.add_ad...
BELOW, R.id.entry_title);
342,042
public CfDef toThrift() {<NEW_LINE>CfDef d = new CfDef(keyspace, name);<NEW_LINE>d.setColumn_metadata(ThriftColumnDef.toThriftList(columnMetadata));<NEW_LINE>d.<MASK><NEW_LINE>d.setComment(comment);<NEW_LINE>d.setComparator_type(comparatorType.getClassName() + comparatorTypeAlias);<NEW_LINE>d.setDefault_validation_clas...
setColumn_type(columnType.getValue());
1,590,524
private void generateColorMaps() {<NEW_LINE>HashMap<Theme.PredefinedColors, ColorOwn> colorMap = new HashMap<PredefinedColors, ColorOwn>();<NEW_LINE>colorMap.put(PredefinedColors.BLACK, BLACK);<NEW_LINE>colorMap.<MASK><NEW_LINE>colorMap.put(PredefinedColors.CYAN, CYAN);<NEW_LINE>colorMap.put(PredefinedColors.DARK_GRAY,...
put(PredefinedColors.BLUE, BLUE);
1,412,117
protected void deleteProcessDefinitions(ProcessDefinitionGroup group) {<NEW_LINE>ProcessDefinitionEntity newLatestProcessDefinition = findNewLatestProcessDefinition(group);<NEW_LINE>CommandContext commandContext = Context.getCommandContext();<NEW_LINE>UserOperationLogManager userOperationLogManager = commandContext.get...
cascadeToHistory, cascadeToInstances, skipCustomListeners, skipIoMappings);
1,468,095
public void read(int empId) {<NEW_LINE>OperationResult<ColumnList<String>> result;<NEW_LINE>try {<NEW_LINE>result = keyspace.prepareQuery(EMP_CF).<MASK><NEW_LINE>ColumnList<String> cols = result.getResult();<NEW_LINE>logger.debug("read: isEmpty: " + cols.isEmpty());<NEW_LINE>// process data<NEW_LINE>// a) iterate over ...
getKey(empId).execute();
855,083
private void initTabAndPager() {<NEW_LINE>mPageAdapter = new QDRecyclerViewAdapter();<NEW_LINE>mPageAdapter.setItemCount(mCurrentItemCount);<NEW_LINE>mContentViewPager.setAdapter(mPageAdapter);<NEW_LINE>mContentViewPager.setCurrentItem(mDestPage.getPosition(), false);<NEW_LINE>QMUITabBuilder tabBuilder = mTabSegment.ta...
.build(getContext()));
476,762
private static CompletableFuture<Versioned<byte[]>> createAllocationData(final String allocatePath, final ZooKeeperClient zkc) {<NEW_LINE>try {<NEW_LINE>final CompletableFuture<Versioned<byte[]>> promise = new CompletableFuture<Versioned<byte[]>>();<NEW_LINE>zkc.get().create(allocatePath, DistributedLogConstants.EMPTY_...
, allocatePath, false), promise);
1,753,509
private void updateProjectAndFinishSync(UpdatePhaseTask updateTask, BlazeContext context) {<NEW_LINE>SyncStats.Builder stats = SyncStats.builder();<NEW_LINE>stats.setSyncBinaryType(updateTask.buildBinaryType());<NEW_LINE>SyncResult syncResult = updateTask.syncResult();<NEW_LINE>try {<NEW_LINE>fillInBuildStats(stats, up...
buildIds(), syncResult, stats);
1,419,647
public static void allowNetworkPolicySettingsForClusterOperator(ExtensionContext extensionContext, String namespace) {<NEW_LINE>String clusterOperatorKind = "cluster-operator";<NEW_LINE>LabelSelector labelSelector = new LabelSelectorBuilder().addToMatchLabels(Constants.KAFKA_CLIENTS_LABEL_KEY, Constants.KAFKA_CLIENTS_L...
).createResource(extensionContext, networkPolicy);
18,206
public double distance(NumberVector v1, NumberVector v2) {<NEW_LINE>final int dim1 = v1.getDimensionality(), dim2 = v2.getDimensionality();<NEW_LINE>if (dim1 > dim2) {<NEW_LINE>return distance(v2, v1);<NEW_LINE>}<NEW_LINE>final int delta = (int) Math.ceil(dim2 * pDelta);<NEW_LINE>// Compute value range, for scaling eps...
+ 1] = next[j];
1,040,081
private RecordCursorFactory generateSetFactory(QueryModel model, RecordCursorFactory masterFactory, SqlExecutionContext executionContext) throws SqlException {<NEW_LINE>RecordCursorFactory slaveFactory = generateQuery0(model.getUnionModel(), executionContext, true);<NEW_LINE>switch(model.getSetOperationType()) {<NEW_LI...
model, masterFactory, executionContext, slaveFactory);
632,224
public static void load(Class cls) {<NEW_LINE>String pkg = Scanner.cutOutLast(cls.getName(), ".");<NEW_LINE>Set<String> classes = new <MASK><NEW_LINE>Set<String> custom = new Scanner(System.getProperty("scouter.handler")).process();<NEW_LINE>classes.addAll(custom);<NEW_LINE>Iterator<String> itr = classes.iterator();<NE...
Scanner(pkg).process();
1,092,156
public InsightRuleContributor unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>InsightRuleContributor insightRuleContributor = new InsightRuleContributor();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>...
int originalDepth = context.getCurrentDepth();
729,431
protected void encodeMarkup(FacesContext context, ColorPicker colorPicker, String value) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String clientId = colorPicker.getClientId(context);<NEW_LINE>String inputId = clientId + "_input";<NEW_LINE>boolean isPopup = colorPicker.g...
writeAttribute("id", inputId, null);
1,495,146
private void pushByInvoke(DismantleBytecode dbc, boolean popThis) {<NEW_LINE>String signature = dbc.getSigConstantOperand();<NEW_LINE>if ("<init>".equals(dbc.getNameConstantOperand()) && signature.endsWith(")V") && popThis) {<NEW_LINE>pop(PreorderVisitor.getNumberArguments(signature));<NEW_LINE>Item constructed = pop()...
(popThis ? 1 : 0));
805,292
final DescribeFlowResult executeDescribeFlow(DescribeFlowRequest describeFlowRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeFlowRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
(super.beforeMarshalling(describeFlowRequest));
1,005,643
private Mono<Response<SyncAgentKeyPropertiesInner>> generateKeyWithResponseAsync(String resourceGroupName, String serverName, String syncAgentName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is require...
this.client.mergeContext(context);
1,280,625
public static Map<String, Long> queryDbGroupDataSize(String schema, List<GroupDetailInfoExRecord> groupRecords) {<NEW_LINE>Map<String, Long> groupDataSizeMap = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);<NEW_LINE>groupRecords.stream().collect(Collectors.groupingBy(x -> x.storageInstId)).forEach((storageInstId, groups...
String) row.get(0);
977,641
public ProcessStatus processExportOrgChartRequest(final PwmRequest pwmRequest) throws PwmUnrecoverableException, IOException {<NEW_LINE>final String userKey = pwmRequest.readParameterAsString(PARAM_USERKEY, PwmHttpRequestWrapper.Flag.BypassValidation);<NEW_LINE>final int requestedDepth = pwmRequest.readParameterAsInt(P...
newException(PwmError.ERROR_SERVICE_NOT_AVAILABLE, msg);
1,289,447
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath pathA = new RegressionPath();<NEW_LINE>env.compileDeploy("module A;\n @name('createA') @protected create window MyWindow#keepall as SupportBean", pathA);<NEW_LINE>RegressionPath pathB = new RegressionPath();<NEW_LINE>env.compileDeploy("module B;\n @na...
env.compileDeploy("module B; @name('B1') select * from MyWindow", pathB);
1,511,711
final GetRepositoryPermissionsPolicyResult executeGetRepositoryPermissionsPolicy(GetRepositoryPermissionsPolicyRequest getRepositoryPermissionsPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRepositoryPermissionsPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
708,666
public InputStream createBarCode(String serialno, BarcodeTypeConfig barcodeTypeConfig, boolean isPadding) throws AxelorException {<NEW_LINE>if (serialno != null && barcodeTypeConfig != null) {<NEW_LINE>BarcodeFormat barcodeFormat = null;<NEW_LINE>switch(barcodeTypeConfig.getName()) {<NEW_LINE>case "AZTEC":<NEW_LINE>bar...
serialno = checkTypeForCode39(serialno, barcodeFormat);
18,113
public void onResponse(com.squareup.okhttp.Response response) throws IOException {<NEW_LINE>if (!response.isSuccessful()) {<NEW_LINE>// change the UI to retry screen<NEW_LINE>String message = "get nonce not successful.";<NEW_LINE>SimplexError error = new SimplexError(new Handler(context.getMainLooper()), message);<NEW_...
.body().string();
85,030
private DataFrame joinResultToDataFrame(String smallerName, String biggerName, Schema biggerSchema, Schema smallerSchema, String joinColumn, Map<String, List<String>> biggerStringResults, Map<String, List<String>> smallerStringResults, Map<String, List<Double>> biggerDoubleResults, Map<String, List<Double>> smallerDoub...
? biggerName + "." + colName : colName;
1,842,994
public static void flipCopyWithGamma(FloatBuffer srcBuf, int srcStep, FloatBuffer dstBuf, int dstStep, double gamma, boolean flip, int channels) {<NEW_LINE>assert srcBuf != dstBuf;<NEW_LINE>int w = <MASK><NEW_LINE>int srcLine = srcBuf.position(), dstLine = dstBuf.position();<NEW_LINE>float[] buffer = new float[channels...
Math.min(srcStep, dstStep);
1,012,283
public PublicWorkforceTaskPrice unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PublicWorkforceTaskPrice publicWorkforceTaskPrice = new PublicWorkforceTaskPrice();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
int originalDepth = context.getCurrentDepth();
765,950
protected void initFilesSet() {<NEW_LINE>if (myType == FILE) {<NEW_LINE>myFilesSet = new HashSet<VirtualFile>(1);<NEW_LINE>myFilesSet.add(((PsiFileSystemItem) myElement).getVirtualFile());<NEW_LINE>} else if (myType == DIRECTORY || myType == PROJECT || myType == MODULES || myType == MODULE || myType == CUSTOM) {<NEW_LI...
getInstance(myProject).getFileIndex();
1,027,092
public void initialize(ModelValidationEngine engine, MClient client) {<NEW_LINE>// client = null for global validator<NEW_LINE>if (client != null) {<NEW_LINE>clientId = client.getAD_Client_ID();<NEW_LINE>log.info(client.toString());<NEW_LINE>} else {<NEW_LINE>log.info("Initializing global validator: " + this.toString()...
addModelChange(I_W_Basket.Table_Name, this);
991,598
public void handle(final RoutingContext routingContext) {<NEW_LINE>routingContext.addEndHandler(ar -> {<NEW_LINE>// After the response is complete, log results here.<NEW_LINE>final int status = routingContext.request().response().getStatusCode();<NEW_LINE>if (!loggingRateLimiter.shouldLog(logger, routingContext.request...
.request().path();
430,948
public String valStr() {<NEW_LINE>String str = args.<MASK><NEW_LINE>int count = args.get(1).valInt().intValue();<NEW_LINE>String pad = args.get(2).valStr();<NEW_LINE>if (args.get(0).isNull() || args.get(1).isNull() || count < 0 || args.get(2).isNull()) {<NEW_LINE>this.nullValue = true;<NEW_LINE>return EMPTY;<NEW_LINE>}...
get(0).valStr();
1,238,286
public RemoteServerEntity patchRemoteServersId(Integer id, RemoteServersIdBody body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'id' when calling patc...
String[] localVarContentTypes = { "application/json" };
1,353,180
public void actionPerformed(ActionEvent event) {<NEW_LINE>JPanel pane = new JPanel();<NEW_LINE>pane.setLayout(new BoxLayout(pane, BoxLayout.PAGE_AXIS));<NEW_LINE>JLabel title = new JLabel("Luyten " + Luyten.getVersion());<NEW_LINE>title.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 18));<NEW_LINE>pane.add(title);<NEW_L...
add(new JLabel(" "));
106,306
protected void fillInputs(CodeUnit unit) {<NEW_LINE>if (unit instanceof Instruction) {<NEW_LINE>Instruction ins = (Instruction) unit;<NEW_LINE>String instr = ins.toString();<NEW_LINE>if (ins.isInDelaySlot()) {<NEW_LINE>assert instr.startsWith("_");<NEW_LINE>instr = instr.substring(1).trim();<NEW_LINE>}<NEW_LINE>input.s...
.getAssemblyField().grabFocus();
554,195
private static void loadSoundSettings(Preferences prefs) {<NEW_LINE>dialog.cbEnableGameSounds.setSelected(prefs.get(KEY_SOUNDS_GAME_ON, "true").equals("true"));<NEW_LINE>dialog.cbEnableDraftSounds.setSelected(prefs.get(KEY_SOUNDS_DRAFT_ON, "true").equals("true"));<NEW_LINE>dialog.cbEnableSkipButtonsSounds.setSelected(p...
"true").equals("true"));
1,109,379
public IClass.IMethod findIMethod(SuperclassMethodInvocation superclassMethodInvocation) throws CompileException {<NEW_LINE>AbstractClassDeclaration declaringClass;<NEW_LINE>for (Scope s = superclassMethodInvocation.getEnclosingScope(); ; s = s.getEnclosingScope()) {<NEW_LINE>if (s instanceof FunctionDeclarator) {<NEW_...
"\"", superclassMethodInvocation.getLocation());
1,010,012
public Status insert(String table, String key, Map<String, ByteIterator> values) {<NEW_LINE>try {<NEW_LINE>Set<String> fields = values.keySet();<NEW_LINE>PreparedStatement stmt = INSERT_STMTS.get(fields);<NEW_LINE>// Prepare statement on demand<NEW_LINE>if (stmt == null) {<NEW_LINE>Insert insertStmt = QueryBuilder.inse...
stmt = session.prepare(insertStmt);
1,799,940
public AnnotationKeyMatcherRegistry createAnnotationKeyMatcherRegistry() {<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.debug("creating AnnotationKeyMatcherRegistry");<NEW_LINE>}<NEW_LINE>AnnotationKeyMatcherRegistry.Builder builder = new AnnotationKeyMatcherRegistry.Builder();<NEW_LINE>for (DisplayArgumentM...
builder.addAnnotationKeyMatcher(serviceType, primaryAnnotationKeyMatcher);
1,229,899
public ExitStatus afterStep(StepExecution stepExecution) {<NEW_LINE>SpanAndScope <MASK><NEW_LINE>List<Throwable> throwables = stepExecution.getFailureExceptions();<NEW_LINE>// @formatter:off<NEW_LINE>AssertingSpan span = SleuthBatchSpan.BATCH_STEP_SPAN.wrap(spanAndScope.getSpan()).tag(SleuthBatchSpan.StepTags.STEP_NAME...
spanAndScope = SPANS.remove(stepExecution);
1,645,393
public static GetQualityFollowerResponse unmarshall(GetQualityFollowerResponse getQualityFollowerResponse, UnmarshallerContext _ctx) {<NEW_LINE>getQualityFollowerResponse.setRequestId(_ctx.stringValue("GetQualityFollowerResponse.RequestId"));<NEW_LINE>getQualityFollowerResponse.setHttpStatusCode(_ctx.integerValue("GetQ...
= new ArrayList<Follower>();
312,387
public JSONObject call(String endpoint, HttpMethod method, Object params, String env) {<NEW_LINE>log.info("begin to call endpoint {}", endpoint);<NEW_LINE>Map<String, Object> <MASK><NEW_LINE>headers.put("x-auth-app", TeslaAuth.DEFAULT_AUTH_APP);<NEW_LINE>headers.put("x-auth-key", TeslaAuth.DEFAULT_AUTH_KEY);<NEW_LINE>h...
headers = new HashMap<>();
1,453,528
protected AuthChallenge loginRedirect() {<NEW_LINE>final String state = getStateCode();<NEW_LINE>final String redirect = getRedirectUri(state);<NEW_LINE>if (redirect == null) {<NEW_LINE>return challenge(403, OIDCAuthenticationError.Reason.NO_REDIRECT_URI, null);<NEW_LINE>}<NEW_LINE>return new AuthChallenge() {<NEW_LINE...
).setHeader("Location", redirect);
1,820,564
public boolean onBackAction() {<NEW_LINE>if (ExtUtils.isExteralSD(BookCSS.get().dirLastPath)) {<NEW_LINE>String path = BookCSS.get().dirLastPath;<NEW_LINE>LOG.d("pathBack before", path);<NEW_LINE>if (path.contains("%2F")) {<NEW_LINE>path = path.substring(0, path.lastIndexOf("%2F"));<NEW_LINE>} else {<NEW_LINE>path = pa...
LOG.d("pathBack after", path);
932,679
public IRubyObject ungetc(ThreadContext context, IRubyObject arg) {<NEW_LINE>Encoding enc, enc2;<NEW_LINE>checkModifiable();<NEW_LINE>checkReadable();<NEW_LINE>if (arg.isNil())<NEW_LINE>return arg;<NEW_LINE>if (arg instanceof RubyInteger) {<NEW_LINE>int len, <MASK><NEW_LINE>byte[] buf = new byte[16];<NEW_LINE>enc = get...
cc = RubyNumeric.num2int(arg);
967,265
public ReactiveSeq<T> insertAt(int pos, Iterable<? extends T> values) {<NEW_LINE>if (pos == 0) {<NEW_LINE>return prependStream(ReactiveSeq.fromIterable(values));<NEW_LINE>}<NEW_LINE>return Spouts.deferFromStream(() -> {<NEW_LINE>long check = new Long(pos);<NEW_LINE>boolean[] added = { false };<NEW_LINE>return Spouts.of...
of(t._1());
256,348
private static void createOutput(SymlinkTreeAction action, ActionExecutionContext actionExecutionContext, Path inputManifest) throws EnvironmentalExecException {<NEW_LINE>Path outputManifest = actionExecutionContext.getInputPath(action.getOutputManifest());<NEW_LINE>if (inputManifest == null) {<NEW_LINE>// If we don't ...
FileSystemUtils.writeContentAsLatin1(outputManifest, hexDigest);
1,694,340
protected void layout(int cardWidth, int cardHeight) {<NEW_LINE>// Pass to parent<NEW_LINE><MASK><NEW_LINE>// Content inset, just equal to border width<NEW_LINE>contentInset = borderWidth;<NEW_LINE>// Total content inset helper<NEW_LINE>totalContentInset = borderWidth + contentInset;<NEW_LINE>// Content width<NEW_LINE>...
super.layout(cardWidth, cardHeight);
1,795,546
public void filter(FacesContext context, TreeTable tt, TreeNode root) {<NEW_LINE>Map<String, FilterMeta> filterBy = tt.getFilterByAsMap();<NEW_LINE>if (filterBy.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Locale filterLocale = LocaleUtils.getCurrentLocale(context);<NEW_LINE>// collect filtered / valid node rowKey...
"totalRecords", filteredValue.getChildCount());
697,733
private static Iterator<Pair<Integer, Record>> writePackedDataBlocks(Iterator<Record> records, final BPlusTree bpt) {<NEW_LINE>if (debug) {<NEW_LINE>divider();<NEW_LINE>System.out.println("---- Data level");<NEW_LINE>}<NEW_LINE>final RecordBufferPageMgr mgr = bpt.getRecordsMgr().getRecordBufferPageMgr();<NEW_LINE>Itera...
rbp.getId(), r);
220,777
public void deserialize(ByteBuf buf) {<NEW_LINE>super.deserialize(buf);<NEW_LINE>int elemNum = buf.readInt();<NEW_LINE>if (rowType == RowType.T_DOUBLE_DENSE_COMPONENT) {<NEW_LINE>double[] values = new double[elemNum];<NEW_LINE>for (int i = 0; i < elemNum; i++) {<NEW_LINE>values[i] = buf.readDouble();<NEW_LINE>}<NEW_LIN...
), buf.readDouble());
152,416
void checkNodeSources(Collection<ProjectProblem> currentProblems) {<NEW_LINE>final NodeExecutable node = NodeExecutable.forProject(project, false);<NEW_LINE>if (node == null) {<NEW_LINE>// already handled<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (EventQueue.isDispatchThread() && !node.versionDetected()) {<NEW_LINE>// av...
result, nodeSources.getAbsolutePath());
1,721,370
protected final StringBuilder appendOperands(StringBuilder sb) {<NEW_LINE>for (int i = 0; i < operands.size(); i++) {<NEW_LINE>if (i > 0) {<NEW_LINE>sb.append(", ");<NEW_LINE>}<NEW_LINE>RexNode <MASK><NEW_LINE>if (!(operand instanceof RexLiteral)) {<NEW_LINE>sb.append(operand);<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>//...
operand = operands.get(i);
7,079
public static DescribeAppVersionResponse unmarshall(DescribeAppVersionResponse describeAppVersionResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAppVersionResponse.setRequestId(_ctx.stringValue("DescribeAppVersionResponse.RequestId"));<NEW_LINE>AppVersion appVersion = new AppVersion();<NEW_LINE>appVersion.setId(...
(_ctx.stringValue("DescribeAppVersionResponse.AppVersion.Size"));
735,251
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select symbol, max(sum(price)) from " + "SupportMarketDataBean#length(10) " + "output every 6 events " + "order by symbol";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>sendEvent(env, "IBM", 3);<NEW_LINE>sendEvent(env, "IBM",...
, { "IBM", 7.0 } });
104,366
public void read(org.apache.thrift.protocol.TProtocol prot, hasSystemPermission_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 incoming = iprot.readBitSet(4);<NEW_LINE>if (incoming....
.principal = iprot.readString();
1,701,461
private void decode() throws IOException {<NEW_LINE>try {<NEW_LINE>@Nullable<NEW_LINE>SubtitleInputBuffer inputBuffer = subtitleDecoder.dequeueInputBuffer();<NEW_LINE>while (inputBuffer == null) {<NEW_LINE>Thread.sleep(5);<NEW_LINE>inputBuffer = subtitleDecoder.dequeueInputBuffer();<NEW_LINE>}<NEW_LINE>inputBuffer.ensu...
.currentThread().interrupt();
964,827
protected void internalReceiveCommand(String itemName, Command command) {<NEW_LINE>logger.debug("Heatmiser Command: {} to {}", itemName, command);<NEW_LINE>HeatmiserBindingProvider providerCmd = null;<NEW_LINE>for (HeatmiserBindingProvider provider : this.providers) {<NEW_LINE>int address = provider.getAddress(itemName...
address = providerCmd.getAddress(itemName);
907,111
public void configure(ConfigurableProvider provider) {<NEW_LINE>provider.addAlgorithm("AlgorithmParameters.PBKDF2", PREFIX + "$AlgParams");<NEW_LINE>provider.addAlgorithm("Alg.Alias.AlgorithmParameters." + PKCSObjectIdentifiers.id_PBKDF2, "PBKDF2");<NEW_LINE>provider.addAlgorithm("SecretKeyFactory.PBKDF2", PREFIX + "$P...
addAlgorithm("SecretKeyFactory.PBKDF2WITHHMACSHA256", PREFIX + "$PBKDF2withSHA256");
359,629
public ProgressObject deployJDBCDrivers(Target target, Set<Datasource> datasources) {<NEW_LINE>List urls = JDBCDriverDeployHelper.getMissingDrivers(getDriverLocations(), datasources);<NEW_LINE>final MonitorProgressObject startProgress <MASK><NEW_LINE>ProgressObject retVal = JDBCDriverDeployHelper.getProgressObject(driv...
= new MonitorProgressObject(dm, null);
1,319,103
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>log.info("doPost from " + request.getRemoteHost() + " - " + request.getRemoteAddr());<NEW_LINE>String url = "/notes.jsp";<NEW_LINE>//<NEW_LINE>// Log.setTraceLevel(9);<NEW_LINE>// WebEnv.dump(req...
ctx = JSPEnv.getCtx(request);
316,736
public DeleteCampaignResult deleteCampaign(DeleteCampaignRequest deleteCampaignRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteCampaignRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(...
DeleteCampaignRequestMarshaller().marshall(deleteCampaignRequest);
1,673,777
public static void main(String[] args) {<NEW_LINE>BufferedImage buffered = UtilImageIO.loadImageNotNull(UtilIO.pathExample("standard/boat.jpg"));<NEW_LINE>GrayF32 input = ConvertBufferedImage.convertFrom(buffered, (GrayF32) null);<NEW_LINE>// Compute the image gradient<NEW_LINE>GrayF32 derivX = input.createSameShape();...
3, false, GrayF32.class);
1,617,418
private static void checkDependency(CompilationInfo copy, Element e, boolean canShowUI) {<NEW_LINE>SpecificationVersion sv = computeSpecVersion(copy, e);<NEW_LINE>while (sv == null && e.getKind() != ElementKind.PACKAGE) {<NEW_LINE>e = e.getEnclosingElement();<NEW_LINE>sv = computeSpecVersion(copy, e);<NEW_LINE>}<NEW_LI...
file, copy.getClasspathInfo());
403,100
public final boolean refresh(TypeElement type) {<NEW_LINE>Map<String, ? extends AnnotationMirror> types = getHelper().getAnnotationsByType(getHelper().getCompilationController().getElements().getAllAnnotationMirrors(type));<NEW_LINE>AnnotationMirror annotationMirror = getAnnotationMirror(types);<NEW_LINE>if (annotation...
parser.expectString("value", null);
703,603
public void buildQueryTreePredicates(List<FilterQueryTree> filterQueryOrPredicates, List<FilterQueryTree> filterQueryAndPredicates) {<NEW_LINE>int childrenCount = getChildren().size();<NEW_LINE>for (int i = 0; i < childrenCount; i += 2) {<NEW_LINE>PredicateAstNode predicate = (PredicateAstNode) getChildren().get(i);<NE...
add(predicate.buildFilterQueryTree());
415,344
public static void vertical(Kernel1D_S32 kernel, GrayS32 input, GrayS32 output) {<NEW_LINE>final int offset = kernel.getOffset();<NEW_LINE>final int width = input.getWidth();<NEW_LINE>final int height = input.getHeight();<NEW_LINE>for (int y = 0; y < height; y++) {<NEW_LINE>for (int x = 0; x < width; x++) {<NEW_LINE>in...
= startY + kernel.getWidth();
1,034,181
private ArgumentBuilder buildArgs(StringToStringMap values, Interface modelItem) throws IOException {<NEW_LINE>values.put(OUTPUT, Tools.ensureDir(values.get(OUTPUT), ""));<NEW_LINE>ArgumentBuilder builder = new ArgumentBuilder(values);<NEW_LINE>builder.startScript("wsdl2java");<NEW_LINE>StringToStringMap nsMappings = S...
(values.get(NAMESPACE_MAPPING));
1,810,876
public static <T> List<T> listOf(InjectableBean<?> targetBean, Type injectionPointType, Type requiredType, Set<Annotation> requiredQualifiers, CreationalContextImpl<?> creationalContext, Set<Annotation> annotations, Member javaMember, int position) {<NEW_LINE>List<InjectableBean<?>> beans = resolveBeans(requiredType, r...
>(beans.size());
860,050
public StartEventsDetectionJobResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartEventsDetectionJobResult startEventsDetectionJobResult = new StartEventsDetectionJobResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren...
class).unmarshall(context));
703,998
private void checkParentProject(final NbMavenProjectImpl project, final String newName) throws IOException {<NEW_LINE>Project[] prjs = OpenProjects.getDefault().getOpenProjects();<NEW_LINE>for (Project prj : prjs) {<NEW_LINE>if (prj.getProjectDirectory().equals(project.getProjectDirectory())) {<NEW_LINE>continue;<NEW_L...
FileUtilities.relativizeFile(parentDir, projectDir);
1,163,428
public void marshall(SamplingRuleUpdate samplingRuleUpdate, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (samplingRuleUpdate == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(samplingRuleUpdate.getRuleName...
samplingRuleUpdate.getFixedRate(), FIXEDRATE_BINDING);
92,631
public PhysicalProperties visitPhysicalHashJoin(PhysicalHashJoin<? extends Plan, ? extends Plan> hashJoin, PlanContext context) {<NEW_LINE>Preconditions.checkState(childrenOutputProperties.size() == 2);<NEW_LINE>PhysicalProperties leftOutputProperty = childrenOutputProperties.get(0);<NEW_LINE>PhysicalProperties rightOu...
.merge(leftHashSpec, rightHashSpec));
73,960
private boolean canCreateGroupMembers(UserRepresentation rep) {<NEW_LINE>if (!Profile.isFeatureEnabled(Profile.Feature.ADMIN_FINE_GRAINED_AUTHZ)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>List<GroupModel> groups = Optional.ofNullable(rep.getGroups()).orElse(Collections.emptyList()).stream().map(path -> findGroupByPa...
groups().requireManageMembership(group);
1,616,835
private static <T, G extends T> void generateConstructor(DexMaker dexMaker, TypeId<G> generatedType, TypeId<T> superType) {<NEW_LINE>TypeId<?>[] paramTypes = new TypeId<?>[2];<NEW_LINE>paramTypes[0] = <MASK><NEW_LINE>paramTypes[1] = TypeId.get(DynamicScope.class);<NEW_LINE>MethodId<?, ?> constructor = generatedType.get...
TypeId.get(StaticScope.class);
441,898
private static void fillMainAttributes(Definition definition, ResourceListing listing, String basePath) {<NEW_LINE>definition.setVersion(listing.getApiVersion());<NEW_LINE>Contract contract = new Contract();<NEW_LINE>if (listing.getInfo() != null) {<NEW_LINE>Contact contact = new Contact();<NEW_LINE>contact.setEmail(li...
listing.getAuthorizations(), endpoint);
1,320,688
final GetServiceQuotaIncreaseRequestFromTemplateResult executeGetServiceQuotaIncreaseRequestFromTemplate(GetServiceQuotaIncreaseRequestFromTemplateRequest getServiceQuotaIncreaseRequestFromTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getServiceQuotaIncreaseRequestFromTemplateRe...
invoke(request, responseHandler, executionContext);
1,040,258
public KeyedObjectMap<SlopeOneModel.ModelRow> buildMatrix() {<NEW_LINE>if (workMatrix == null) {<NEW_LINE>throw new IllegalStateException("Model is already built");<NEW_LINE>}<NEW_LINE>KeyedObjectMapBuilder<SlopeOneModel.ModelRow> builder = KeyedObjectMap.newBuilder();<NEW_LINE>for (Map.Entry<Long, Pair<Long2DoubleMap,...
] deviations = new double[n];
149,857
protected void updateUndoHistory() {<NEW_LINE>if (m_editableObject != null) {<NEW_LINE>// There was an editable object that has been changed<NEW_LINE>final int x = getCaretEndPosX();<NEW_LINE>final int y = getCaretMouseReleasedY();<NEW_LINE>final ZyLineContent lineContent = getLineContent(y);<NEW_LINE>final IZyEditable...
), editableObject.getEnd());
771,031
private void loadNode45() {<NEW_LINE>DataTypeEncodingTypeNode node = new DataTypeEncodingTypeNode(this.context, Identifiers.DeleteNodesItem_Encoding_DefaultXml, new QualifiedName(0, "Default XML"), new LocalizedText("en", "Default XML"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0)<MASK><NEW_LINE>...
, UByte.valueOf(0));
1,013,810
public static Map<Short, Set<String>> topicsForReplicationFactorChange(Map<Short, Pattern> topicPatternByReplicationFactor, Cluster cluster) {<NEW_LINE>Map<Short, Set<String>> topicsToChangeByReplicationFactor = new HashMap<>();<NEW_LINE>for (Map.Entry<Short, Pattern> entry : topicPatternByReplicationFactor.entrySet())...
collect(Collectors.toSet());