idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,822,401
static boolean updateProp(InplaceEditor ine) {<NEW_LINE>// System.err.println("UPDATEPROP(inplaceEditor)");<NEW_LINE>Component c = ine.getComponent();<NEW_LINE>Cursor oldCursor = c.getCursor();<NEW_LINE>try {<NEW_LINE>c.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));<NEW_LINE>Object o = ine.getValue();<NEW_L...
getPropertyEditor(), newValString) : false;
1,453,382
private List<Genome> resetSpecies(List<Genome> inputGenomes) {<NEW_LINE>final List<Genome> result = new ArrayList<Genome>();<NEW_LINE>final Object[] speciesArray = this.population.getSpecies().toArray();<NEW_LINE>// Add the genomes<NEW_LINE>for (final Genome genome : inputGenomes) {<NEW_LINE>result.add(genome);<NEW_LIN...
final BasicSpecies s = (BasicSpecies) element;
1,850,569
static EnvSet envSetFromStarlark(StarlarkInfo envSetStruct) throws EvalException {<NEW_LINE>checkRightProviderType(envSetStruct, "env_set");<NEW_LINE>ImmutableSet<String> actions = getStringSetFromStarlarkProviderField(envSetStruct, "actions");<NEW_LINE>if (actions.isEmpty()) {<NEW_LINE>throw infoError(envSetStruct, "a...
withFeatureSetStructs = getStarlarkProviderListFromStarlarkField(envSetStruct, "with_features");
1,740,656
public CustomerOptionValue populate(PersistableCustomerOptionValue source, CustomerOptionValue target, MerchantStore store, Language language) throws ConversionException {<NEW_LINE>Validate.notNull(languageService, "Requires to set LanguageService");<NEW_LINE>try {<NEW_LINE>target.<MASK><NEW_LINE>target.setMerchantStor...
setCode(source.getCode());
1,347,124
private void init_standard_header_with_expandcollapse_button_custom_area() {<NEW_LINE>// Create a Card<NEW_LINE>Card card = new Card(getActivity());<NEW_LINE>// Create a CardHeader<NEW_LINE>CardHeader header = new CardHeader(getActivity());<NEW_LINE>// Set the header title<NEW_LINE>header.setTitle(getString(R.string.de...
= new CustomExpandCard(getActivity());
808,825
final ImportStacksToStackSetResult executeImportStacksToStackSet(ImportStacksToStackSetRequest importStacksToStackSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(importStacksToStackSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,401,948
static <// / @Generated("This method was generated using jOOQ-tools")<NEW_LINE>T1, T2, T3, T4, T5, T6, T7, T8, T9, R> Seq<R> zip(Seq<? extends T1> s1, Seq<? extends T2> s2, Seq<? extends T3> s3, Seq<? extends T4> s4, Seq<? extends T5> s5, Seq<? extends T6> s6, Seq<? extends T7> s7, Seq<? extends T8> s8, Seq<? extends T...
> it3 = s3.iterator();
1,374,146
public static void main(String[] args) throws IOException, ConnectorException, InterruptedException {<NEW_LINE>String start = args.length > 0 ? args[0] : null;<NEW_LINE>if (start != null) {<NEW_LINE>String[] args2 = Arrays.copyOfRange(args, 1, args.length);<NEW_LINE>if (HELLO_WORLD.equals(start)) {<NEW_LINE>GETClient.m...
System.out.println("\nCalifornium (Cf) Server-Starter");
620,276
public ExternalTaskExecutionInfo produce() {<NEW_LINE>TreePath[] selectionPaths = getSelectionPaths();<NEW_LINE>if (selectionPaths == null || selectionPaths.length == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Map<String, ExternalTaskExecutionInfo> map = ContainerUtil.newHashMap();<NEW_LINE>for (TreePath selectionP...
setVmOptions(executionSettings.getVmOptions());
338,584
public static boolean updatePassword(String ApplicationRoot, String userName, String currentPassword, String newPassword) {<NEW_LINE>log.debug("*** Setter.updatePassword ***");<NEW_LINE>boolean result = false;<NEW_LINE>Connection conn;<NEW_LINE>try {<NEW_LINE>conn = Database.getCoreConnection(ApplicationRoot);<NEW_LINE...
"Could not get core connection: " + e.toString());
1,490,228
private Optional<EnumDescriptorProto> generateValueSetEnum(ValueSet valueSet) {<NEW_LINE>String url = valueSet.getUrl().getValue();<NEW_LINE>List<ValueSet.Compose.ConceptSet> includes = valueSet.getCompose().getIncludeList();<NEW_LINE>Map<String, ValueSet.Compose.ConceptSet> excludesBySystem = valueSet.getCompose().get...
.ConceptSet.getDefaultInstance()));
1,218,768
public void persist(SubJobInfo subJobInfo) throws QueryFailedException, EntranceIllegalParamException {<NEW_LINE>if (null == subJobInfo || null == subJobInfo.getSubJobDetail()) {<NEW_LINE>throw new EntranceIllegalParamException(20004, "JobDetail can not be null, unable to do persist operation");<NEW_LINE>}<NEW_LINE><MA...
JobDetailReqInsert jobReqInsert = new JobDetailReqInsert(subJobInfo);
1,443,481
public void readFields(DataInput in) throws IOException {<NEW_LINE>super.readFields(in);<NEW_LINE>id = in.readLong();<NEW_LINE>fullQualifiedName = Text.readString(in);<NEW_LINE>// read groups<NEW_LINE>int numTables = in.readInt();<NEW_LINE>for (int i = 0; i < numTables; ++i) {<NEW_LINE>Table table = Table.read(in);<NEW...
tableName.toLowerCase(), tableName);
400,096
public Object instantiate(RootBeanDefinition bd, @Nullable String beanName, BeanFactory owner, @Nullable Object factoryBean, final Method factoryMethod, Object... args) {<NEW_LINE>try {<NEW_LINE>ReflectionUtils.makeAccessible(factoryMethod);<NEW_LINE>Method priorInvokedFactoryMethod = currentlyInvokedFactoryMethod.get(...
+ factoryMethod.getName() + "' threw exception";
324,751
public void onEightyByteMessage(final EightyByteMessage message) {<NEW_LINE>final ExcerptAppender appender = outputSupplier.get();<NEW_LINE>// DebugTimestamps.operationStart(DebugTimestamps.Operation.GET_WRITING_DOCUMENT);<NEW_LINE>@NotNull<NEW_LINE><MASK><NEW_LINE>// DebugTimestamps.operationEnd(DebugTimestamps.Operat...
DocumentContext context = appender.writingDocument();
899,309
public List<Map.Entry<String, String>> scan(ClassFile classFile) {<NEW_LINE>List<Map.Entry<String, String>> entries = new ArrayList<>();<NEW_LINE>String className = classFile.getName();<NEW_LINE>if (resultFilter.test(className) && isPublic(classFile)) {<NEW_LINE>entries.add<MASK><NEW_LINE>if (includeFields) {<NEW_LINE>...
(entry(className, ""));
326,268
private List<NameValueCountPair> groupByCreatorUnit(Business business, Predicate predicate) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer(<MASK><NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Tuple> cq = cb.createQuery(Tuple.class);<NEW_LINE>Root<Task> roo...
).get(Task.class);
573,188
private void postCreateRecurringSnapshotForPolicy(long userId, long volumeId, long snapshotId, long policyId) {<NEW_LINE>// Use count query<NEW_LINE>SnapshotVO spstVO = _snapshotDao.findById(snapshotId);<NEW_LINE>Type type = spstVO.getRecurringType();<NEW_LINE>int maxSnaps = type.getMax();<NEW_LINE>List<SnapshotVO> <MA...
snaps = listSnapsforVolumeTypeNotDestroyed(volumeId, type);
1,565,715
/* (non-Javadoc)<NEW_LINE>* @see tlc2.tool.fp.DiskFPSet.Flusher#mergeNewEntries(java.io.RandomAccessFile, java.io.RandomAccessFile)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected void mergeNewEntries(BufferedRandomAccessFile[] inRAFs, RandomAccessFile outRAF) throws IOException {<NEW_LINE>final int buffLen = buff.le...
inRAFs[0].readLong();
1,143,510
private ProcessPreconditionsResolution rejectIfSecurPharmAttributesAreNotOK(final HUEditorRow document) {<NEW_LINE>//<NEW_LINE>// OK if this is not a Pharma product<NEW_LINE>final HUEditorRowAttributes attributes = document.getAttributes();<NEW_LINE>if (!attributes.hasAttribute(AttributeConstants.ATTR_SecurPharmScanned...
class).getTranslatableMsgText(MSG_ScanRequired));
962,281
final CreateThemeResult executeCreateTheme(CreateThemeRequest createThemeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createThemeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
995,221
private static void showArtifactViewer(NBVersionInfo info, Artifact artifact, List<ArtifactRepository> repos, String panelHint) {<NEW_LINE>ArtifactViewerFactory fact = Lookup.getDefault(<MASK><NEW_LINE>if (fact == null) {<NEW_LINE>Logger.getLogger(ArtifactViewer.class.getName()).info("No implementation of ArtifactViewe...
).lookup(ArtifactViewerFactory.class);
487,347
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable final Bundle savedInstanceState) {<NEW_LINE>if (isNewInstance()) {<NEW_LINE>mFragmentView = inflater.inflate(R.<MASK><NEW_LINE>mEmptyView = mFragmentView.findViewById(R.id.empty);<NEW_LINE>mRecyclerView = (RecyclerView) mFragment...
layout.fragment_item, container, false);
737,155
private void buildTablePartitionInfoAndTopology() {<NEW_LINE>CreateTablePreparedData indexTablePreparedData = gsiPreparedData.getIndexTablePreparedData();<NEW_LINE>SqlDdl sqlDdl = (SqlDdl) relDdl.sqlNode;<NEW_LINE>if (sqlDdl.getKind() == SqlKind.CREATE_TABLE || sqlDdl.getKind() == SqlKind.ALTER_TABLE) {<NEW_LINE>refres...
.partitionInfo = indexTableBuilder.getPartitionInfo();
893,540
public void onClick(View v) {<NEW_LINE>final Context context = v.getContext();<NEW_LINE>if (v == developer) {<NEW_LINE>// open dev settings<NEW_LINE>Intent devIntent = new Intent(Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS);<NEW_LINE>devIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);<NEW_LINE>ResolveInfo resolveIn...
locationIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
1,108
public static void main(String[] argv) {<NEW_LINE>StringBuffer latex = new StringBuffer();<NEW_LINE>latex.append("Sei $A$ ein Vektorraum und $f:A \\rightarrow \\mathcal{R}$ sei linear.\n");<NEW_LINE>latex.append("Wir wissen dass $u=\\pi$, und damit haben wir:");<NEW_LINE>latex.append("\\begin{align}");<NEW_LINE>latex.a...
Container cp = jf.getContentPane();
268,935
private void visitAliasDeclaration(AstNode aliasDeclNode) {<NEW_LINE>var parent = aliasDeclNode.getFirstAncestor(CxxGrammarImpl.functionDefinition, CxxGrammarImpl.classSpecifier);<NEW_LINE>// An alias declaration inside a function is not part of the public API<NEW_LINE>if (parent != null && parent.getType().equals(CxxG...
"no identifier found at {}", aliasDeclNode.getTokenLine());
1,807,339
protected void initView() {<NEW_LINE>// gles view<NEW_LINE>StackLayout.LayoutConfig config = new StackLayout.LayoutConfig(StackLayout.LayoutConfig.MATCH_PARENT, StackLayout.LayoutConfig.MATCH_PARENT);<NEW_LINE>mSurfaceProvider <MASK><NEW_LINE>mSurfaceProvider.getSurfaceOps().get().addCallback(this);<NEW_LINE>mSurfacePr...
= new SurfaceProvider(getContext());
116,458
public int compare(PluginInterface if0, PluginInterface if1) {<NEW_LINE>int result = 0;<NEW_LINE>switch(field) {<NEW_LINE>case FIELD_LOAD:<NEW_LINE>{<NEW_LINE>boolean b0 = if0.getPluginState().isLoadedAtStartup();<NEW_LINE>boolean b1 = if1.getPluginState().isLoadedAtStartup();<NEW_LINE>result = (b0 == b1 ? 0 : (b0 ? -1...
.getPluginState().isUnloadable();
121,470
public <T extends JpaObject> List<T> listEqualAndEqualAndSequenceAfter(Class<T> clz, String oneEqualAttribute, Object oneEqualValue, String twoEqualAttribute, Object twoEqualValue, Integer count, String sequence) throws Exception {<NEW_LINE>EntityManager em = this.get(clz);<NEW_LINE><MASK><NEW_LINE>CriteriaQuery<T> cq ...
CriteriaBuilder cb = em.getCriteriaBuilder();
837,776
private void evaluateLayout() {<NEW_LINE>float dir = Math.signum(mTransitionGoalPosition - mTransitionLastPosition);<NEW_LINE>long currentTime = getNanoTime();<NEW_LINE>float deltaPos = 0f;<NEW_LINE>if (!(mInterpolator instanceof StopLogic)) {<NEW_LINE>// if we are not in a drag<NEW_LINE>deltaPos = dir * (currentTime -...
final View child = getChildAt(i);
1,582,969
public static ListResourcesResponse unmarshall(ListResourcesResponse listResourcesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listResourcesResponse.setRequestId(_ctx.stringValue("ListResourcesResponse.RequestId"));<NEW_LINE>listResourcesResponse.setTotalCount(_ctx.integerValue("ListResourcesResponse.TotalCount"));<N...
("ListResourcesResponse.Resources[" + i + "].CreateDate"));
946,790
protected void handleUrlLoad(Uri uri) {<NEW_LINE>if (!uri.getScheme().equals("comment")) {<NEW_LINE>super.handleUrlLoad(uri);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int line = Integer.parseInt(uri.getQueryParameter("position"));<NEW_LINE>int leftLine = Integer.parseInt(uri.getQueryParameter("l"));<NEW_LINE>int rightLine ...
(uri.getQueryParameter("r"));
742,852
private void processRelocationTables(ElfHeader elf, Listing listing) throws CancelledException {<NEW_LINE>monitor.setMessage("Processing relocation tables...");<NEW_LINE>ElfRelocationTable[] relocationTables = elf.getRelocationTables();<NEW_LINE>for (ElfRelocationTable relocationTable : relocationTables) {<NEW_LINE>mon...
relocationTableAddress, CodeUnit.PRE_COMMENT, "ELF Relocation Table (markup not yet supported)");
1,150,581
public static AssignRolesToUserResponse unmarshall(AssignRolesToUserResponse assignRolesToUserResponse, UnmarshallerContext context) {<NEW_LINE>assignRolesToUserResponse.setRequestId(context.stringValue("AssignRolesToUserResponse.RequestId"));<NEW_LINE>assignRolesToUserResponse.setSuccess(context.booleanValue("AssignRo...
("AssignRolesToUserResponse.User.SkillLevels[" + i + "].Skill.SkillGroupName"));
240,401
private final void generatePojoGetter0(TypedElementDefinition<?> column, @SuppressWarnings("unused") int index, JavaWriter out) {<NEW_LINE>final String columnTypeFull = getJavaType(column.getType(resolver(out, Mode.POJO)<MASK><NEW_LINE>final String columnType = out.ref(columnTypeFull);<NEW_LINE>final String columnGette...
), out, Mode.POJO);
3,760
public LoginResponse completeOpenIdLogin(String code, String state, String idToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'code' is set<NEW_LINE>if (code == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'code' when calling...
HashMap<String, Object>();
855,214
public static SentryEnvelopeItem fromEvent(@NotNull final ISerializer serializer, @NotNull final SentryBaseEvent event) throws IOException {<NEW_LINE>Objects.requireNonNull(serializer, "ISerializer is required.");<NEW_LINE>Objects.requireNonNull(event, "SentryEvent is required.");<NEW_LINE>final CachedItem cachedItem =...
serializer.serialize(event, writer);
212,875
private CodePointMapping buildCustomEncoding(String encodingName, AFMFile afm) {<NEW_LINE>int mappingCount = 0;<NEW_LINE>// Just count the first time...<NEW_LINE>List<AFMCharMetrics> chars = afm.getCharMetrics();<NEW_LINE>for (AFMCharMetrics charMetrics : chars) {<NEW_LINE>if (charMetrics.getCharCode() >= 0) {<NEW_LINE...
log.info("No Unicode mapping for glyph: " + charMetrics);
496,401
public static Object doProcess(Object input, Object start, Object length, Object replacement) {<NEW_LINE>if (input == null || start == null || length == null || replacement == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if ((input instanceof String || input instanceof Character) == false) {<NEW_LINE>throw new Sql...
, (long) Integer.MAX_VALUE);
545,756
public static DescribeDBClusterPerformanceResponse unmarshall(DescribeDBClusterPerformanceResponse describeDBClusterPerformanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDBClusterPerformanceResponse.setRequestId(_ctx.stringValue("DescribeDBClusterPerformanceResponse.RequestId"));<NEW_LINE>describeDBClusterP...
+ "].Values[" + k + "]"));
464,410
private <T> void schedule(ScheduledCompletableFutureRecurring<T> recurringSchedule, SchedulerRunnable runnable, TemporalAdjuster temporalAdjuster) {<NEW_LINE>final Temporal newTime = recurringSchedule.getScheduledTime().with(temporalAdjuster);<NEW_LINE>final ScheduledCompletableFutureOnce<T> deferred = new ScheduledCom...
(ZonedDateTime.from(newTime));
1,139,116
public SoftwareTokenMfaConfigType unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SoftwareTokenMfaConfigType softwareTokenMfaConfigType = new SoftwareTokenMfaConfigType();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
int originalDepth = context.getCurrentDepth();
1,361,556
public Sequence<T> applySubsampling(@NonNull Sequence<T> sequence, @NonNull AtomicLong nextRandom) {<NEW_LINE>Sequence<T> result = new Sequence<>();<NEW_LINE>// subsampling implementation, if subsampling threshold met, just continue to next element<NEW_LINE>if (sampling > 0) {<NEW_LINE>result.<MASK><NEW_LINE>if (sequen...
setSequenceId(sequence.getSequenceId());
292,729
public CompletionStage<Result> update(final String queries) {<NEW_LINE>return getRandomWorlds(queryCount(queries)).thenApplyAsync(worlds -> {<NEW_LINE>final Random random = ThreadLocalRandom.current();<NEW_LINE>for (final WorldRecord world : worlds) {<NEW_LINE>world.setRandomnumber((random.<MASK><NEW_LINE>}<NEW_LINE>fi...
nextInt(10000) + 1));
990,847
public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) {<NEW_LINE>Permanent permanent = game.getPermanent(source.getSourceId());<NEW_LINE>if (permanent == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (permanent.getImprinted().isEmpty()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>List...
.size() - 1));
496,006
private MappeableContainer ilazyorToRun(MappeableArrayContainer x) {<NEW_LINE>if (isFull()) {<NEW_LINE>return full();<NEW_LINE>}<NEW_LINE>final int nbrruns = this.nbrruns;<NEW_LINE>final int offset = Math.max(nbrruns, x.getCardinality());<NEW_LINE>copyToOffset(offset);<NEW_LINE>char[] vl = valueslength.array();<NEW_LIN...
(vl, rlepos + offset));
884,125
protected String findPropertyName(ExecutableElement m) {<NEW_LINE>String name = m<MASK><NEW_LINE>if (!builder) {<NEW_LINE>if (!name.startsWith(SET_NAME_PREFIX) || name.length() == SET_NAME_PREFIX_LEN || !Character.isUpperCase(name.charAt(SET_NAME_PREFIX_LEN))) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// c...
.getSimpleName().toString();
1,458,335
public void caseLoadInst(LoadInst i) {<NEW_LINE>final int slot = localToSlot.get(i.getLocal());<NEW_LINE>i.getOpType().apply(new TypeSwitch() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void caseArrayType(ArrayType t) {<NEW_LINE>mv.visitVarInsn(Opcodes.ALOAD, slot);<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>p...
visitVarInsn(Opcodes.FLOAD, slot);
1,587,270
static boolean nukeExistingCluster(KV kvClient, String scope) throws Exception {<NEW_LINE>ByteSequence rootScopeKey = ByteSequence.from(scope, UTF_8);<NEW_LINE>GetResponse resp = msResult(kvClient.get(rootScopeKey));<NEW_LINE>if (resp.getCount() <= 0) {<NEW_LINE>log.info("There is no existing cluster with under scope '...
true).build()));
845,811
protected void logConfig(EGLConfig config) {<NEW_LINE>EGL10 egl = (EGL10) EGLContext.getEGL();<NEW_LINE>EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);<NEW_LINE>int r = getAttrib(egl, display, config, EGL10.EGL_RED_SIZE, 0);<NEW_LINE>int g = getAttrib(egl, display, config, EGL10.EGL_GREEN_SIZE, 0);<N...
LOG_TAG, "samples: (" + samples + ")");
152,993
private int drawLabelString(Graphics g, Label l, String text, int x, int y, int textSpaceX, int textSpaceW) {<NEW_LINE>if (text.length() == 0) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>Style style = l.getStyle();<NEW_LINE><MASK><NEW_LINE>int cy = g.getClipY();<NEW_LINE>int cw = g.getClipWidth();<NEW_LINE>int ch = g.getC...
int cx = g.getClipX();
22,875
public static GetProductQuotaResponse unmarshall(GetProductQuotaResponse getProductQuotaResponse, UnmarshallerContext _ctx) {<NEW_LINE>getProductQuotaResponse.setRequestId(_ctx.stringValue("GetProductQuotaResponse.RequestId"));<NEW_LINE>Quota quota = new Quota();<NEW_LINE>quota.setQuotaDescription<MASK><NEW_LINE>quota....
(_ctx.stringValue("GetProductQuotaResponse.Quota.QuotaDescription"));
413
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {<NEW_LINE>SecurityContext context = SecurityContextHolder.getContext();<NEW_LINE>if (context != null && context.getAuthentication() != null && context.getAuthenticatio...
.getPrincipal().getId();
544,017
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Application app = emc.<MASK><NEW_LINE>if (null == app) {<NEW_LINE>thro...
find(id, Application.class);
1,283,177
synchronized boolean updateParams(CreateParams params, boolean executeViaDistributed) throws ODatabaseException {<NEW_LINE>if (executeViaDistributed) {<NEW_LINE>try {<NEW_LINE>return sendSequenceActionOverCluster(OSequenceAction.UPDATE, params);<NEW_LINE>} catch (InterruptedException | ExecutionException exc) {<NEW_LIN...
this.setOrderType(params.orderType);
697,544
private static TsMethodModel createDeserializationGenericFunctionConstructor(SymbolTable symbolTable, TsModel tsModel, TsBeanModel bean) {<NEW_LINE>final Symbol beanIdentifier = symbolTable.getSymbol(bean.getOrigin());<NEW_LINE>List<TsType.GenericVariableType> typeParameters = getTypeParameters(bean.getOrigin());<NEW_L...
new TsIdentifierReference(constructorFnOfParameter.name));
1,733,415
public MethodNode generate() {<NEW_LINE>int size = Bytecode.getArgsSize(this.argTypes) + this.returnType.getSize() + (this.targetIsStatic ? 0 : 1);<NEW_LINE>MethodNode method = this.createMethod(size, size);<NEW_LINE>if (!this.targetIsStatic) {<NEW_LINE>method.instructions.add(new VarInsnNode(Opcodes.ALOAD, 0));<NEW_LI...
getOpcode(Opcodes.IRETURN)));
107,339
public static <T> T serializeObject(T o, ODatabaseObject db) {<NEW_LINE>if (o instanceof Proxy) {<NEW_LINE>final ODocument iRecord = getDocument((Proxy) o);<NEW_LINE>Class<?> pojoClass = o<MASK><NEW_LINE>invokeCallback(pojoClass, o, iRecord, OBeforeSerialization.class);<NEW_LINE>invokeCallback(pojoClass, o, iRecord, OA...
.getClass().getSuperclass();
147,108
static void BuildLexStatesTable() {<NEW_LINE>Iterator<TokenProduction> it = rexprlist.iterator();<NEW_LINE>TokenProduction tp;<NEW_LINE>int i;<NEW_LINE>String[] tmpLexStateName = new String[lexstate_I2S.size()];<NEW_LINE>while (it.hasNext()) {<NEW_LINE>tp = it.next();<NEW_LINE>List<RegExprSpec> respecs = tp.respecs;<NE...
long[maxOrdinal / 64 + 1];
1,272,406
ActionResult<List<NameValueCountPair>> execute(EffectivePerson effectivePerson, String applicationFlag) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<List<NameValueCountPair>> result = new ActionResult<>();<NEW_LINE>Business busi...
application().pick(applicationFlag);
60,207
protected void openWorkbook(OutputStream os) throws JRException {<NEW_LINE>rendererToImagePathMap = new HashMap<>();<NEW_LINE>// imageMaps = new HashMap();<NEW_LINE>// hyperlinksMap = new HashMap();<NEW_LINE>definedNames = new StringBuilder();<NEW_LINE>sheetMapping = new HashMap<>();<NEW_LINE>try {<NEW_LINE>String memo...
getCoreEntry().getWriter());
1,044,822
private static boolean compilesWithFix(Fix fix, VisitorState state, ImmutableList<String> extraOptions, boolean onlyInSameCompilationUnit, int maxErrors, int maxWarnings) {<NEW_LINE>if (fix.isEmpty() && extraOptions.isEmpty()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>FixCompiler fixCompiler;<NEW_LINE>try {<NEW_LINE>...
getCode().equals("compiler.err.warnings.and.werror");
251,624
private void emitRow(@Nullable GenericRowData physicalKeyRow, @Nullable GenericRowData physicalValueRow) {<NEW_LINE>final RowKind rowKind;<NEW_LINE>if (physicalValueRow == null) {<NEW_LINE>if (upsertMode) {<NEW_LINE>rowKind = RowKind.DELETE;<NEW_LINE>} else {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>rowKin...
throw new DeserializationException("Invalid null value received in non-upsert mode. " + "Could not to set row kind for output record.");
1,519,077
public static <T extends ServiceDefinition> void build(T sd, final Class<?> interfaceClass) {<NEW_LINE>sd.setCanonicalName(interfaceClass.getCanonicalName());<NEW_LINE>sd.setCodeSource(ClassUtils.getCodeSource(interfaceClass));<NEW_LINE>Annotation[] classAnnotations = interfaceClass.getAnnotations();<NEW_LINE>sd.setAnn...
getMethods().add(md);
1,290,210
protected void paint(Event event, Object element) {<NEW_LINE>Rectangle tableItem = getBounds(event.item, event.index);<NEW_LINE>boolean isSelected = (event.detail & SWT.SELECTED) != 0 || (event.detail & SWT.HOT) != 0;<NEW_LINE>if (!isSelected)<NEW_LINE>fillBackground(event, element, tableItem);<NEW_LINE>Long value = ge...
event.gc.setForeground(newForeground);
1,082,872
public static MessageHandlerMethodFactory messageHandlerMethodFactory(@Qualifier(IntegrationContextUtils.ARGUMENT_RESOLVER_MESSAGE_CONVERTER_BEAN_NAME) CompositeMessageConverter compositeMessageConverter, @Nullable Validator validator, ConfigurableListableBeanFactory clbf) {<NEW_LINE>DefaultMessageHandlerMethodFactory ...
.getConversionService(), clbf));
953,183
public void validate() throws WizardValidationException {<NEW_LINE>// XXX this is little strange. Since this method is called first time the panel appears.<NEW_LINE>// So we have to do this null check (data are uninitialized)<NEW_LINE>String prjFolder = getData().getProjectFolder();<NEW_LINE>if (prjFolder != null) {<NE...
String.format(message, forbiddenChars);
497,638
protected void showUrl(String url, boolean removeToolbar, LoadHandler onLoad) {<NEW_LINE>if (appFrame_ != null) {<NEW_LINE>// first set the frame to about:blank so that the<NEW_LINE>// javascript "unload" event is triggered (this is<NEW_LINE>// used by bookdown to save/restore scroll position)<NEW_LINE>appFrame_.setUrl...
PX, 0, Unit.PX);
1,752,724
private void cmd_archive() {<NEW_LINE>boolean success = false;<NEW_LINE>byte[] data = getPDFAsArray(file);<NEW_LINE>MArchive arc = null;<NEW_LINE>if (data != null) {<NEW_LINE>PrintInfo printInfo = null;<NEW_LINE>if (null != processInfo) {<NEW_LINE>printInfo = new PrintInfo(processInfo);<NEW_LINE>}<NEW_LINE>if (null != ...
" Archived Into " + arc.getAD_Archive_ID());
669,555
private void lowerAtomicStoreIndexedNode(StoreAtomicIndexedNode storeIndexed) {<NEW_LINE>StructuredGraph graph = storeIndexed.graph();<NEW_LINE>JavaKind elementKind = storeIndexed.elementKind();<NEW_LINE>ValueNode value = storeIndexed.value();<NEW_LINE>ValueNode array = storeIndexed.array();<NEW_LINE><MASK><NEW_LINE>AT...
ValueNode accumulator = storeIndexed.getAccumulator();
1,851,502
private void analyzeStarrocksJarUdtf() throws AnalysisException {<NEW_LINE>{<NEW_LINE>// TYPE[] process(INPUT)<NEW_LINE>Method method = mainClass.getMethod(PROCESS_METHOD_NAME, true);<NEW_LINE>mainClass.checkMethodNonStaticAndPublic(method);<NEW_LINE>mainClass.checkArgumentCount(method, argsDef.getArgTypes().length);<N...
setSymbolName(mainClass.getCanonicalName());
765,557
public PrioritizeBusinessGoals unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PrioritizeBusinessGoals prioritizeBusinessGoals = new PrioritizeBusinessGoals();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
JsonToken token = context.getCurrentToken();
1,309,139
public static void componentRenamed(RADComponent metacomp, String oldName, String newName) {<NEW_LINE>ResourceSupport support = getResourceSupport(metacomp);<NEW_LINE>if (support.isAutoMode()) {<NEW_LINE>support.renameDefaultKeysForComponent(metacomp, null, null, oldName, newName, false);<NEW_LINE>}<NEW_LINE>// hack: '...
Object name = nameProp.getValue();
839,688
private static void exportMultiPointToJson(MultiPoint mpt, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) {<NEW_LINE>boolean bExportZs = mpt.hasAttribute(Semantics.Z);<NEW_LINE>boolean bExportMs = mpt.hasAttribute(Semantics.M);<NEW_LINE>boolean bPositionAsF = false;<NEW_...
jsonWriter.addPairBoolean("hasZ", true);
321,963
public Request<DescribePrefixListsRequest> marshall(DescribePrefixListsRequest describePrefixListsRequest) {<NEW_LINE>if (describePrefixListsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribePrefixListsRequest> request = new Defa...
request.addParameter("Version", "2015-10-01");
934,272
public boolean test() {<NEW_LINE>final Request request = prepareRequest(client, 12);<NEW_LINE>try {<NEW_LINE>request.addMessageObserver(new EndpointContextTracer() {<NEW_LINE><NEW_LINE>private final AtomicBoolean ready = new AtomicBoolean();<NEW_LINE><NEW_LINE>private final AtomicInteger counter = new AtomicInteger();<...
LOGGER.warn("Test failed!", ex);
1,700,427
public InternalAggregation doReduce(List<InternalAggregation> aggregations, ReduceContext reduceContext) {<NEW_LINE>reduceContext.consumeBucketsAndMaybeBreak(buckets.size());<NEW_LINE>long[] docCounts = new long[buckets.size()];<NEW_LINE>InternalAggregations[][] aggs = new InternalAggregations[buckets.size()][];<NEW_LI...
this.buckets.size());
472,233
public void aggregateGroupBySV(int length, int[] groupKeyArray, GroupByResultHolder groupByResultHolder, Map<ExpressionContext, BlockValSet> blockValSetMap) {<NEW_LINE>BlockValSet blockValSet = blockValSetMap.get(_expression);<NEW_LINE>if (blockValSet.getValueType() != DataType.BYTES) {<NEW_LINE>long[<MASK><NEW_LINE>fo...
] longValues = blockValSet.getLongValuesSV();
934,549
private final void initLanguageResources() {<NEW_LINE>languageResources = new TreeMap<String, List<String>>();<NEW_LINE>for (String language : languages) {<NEW_LINE>// opening the corresponding language resource file<NEW_LINE>String path = GrobidProperties.getGrobidHomePath() + "/lexicon/patent/" + language + ".local";...
throw new GrobidException("An exception occured while running Grobid.", e);
1,240,444
public Point scalePoint(Point p) {<NEW_LINE>if (image == null) {<NEW_LINE>return new Point(0, 0);<NEW_LINE>}<NEW_LINE>Insets ins = getInsets();<NEW_LINE>double sourceWidth = image.getWidth();<NEW_LINE>double sourceHeight = image.getHeight();<NEW_LINE>double destWidth = getWidth() - ins.left - ins.right;<NEW_LINE>double...
return new Point(x, y);
921,093
protected void prepare() {<NEW_LINE>ProcessInfoParameter[] para = getParameter();<NEW_LINE>for (int i = 0; i < para.length; i++) {<NEW_LINE>String name = <MASK><NEW_LINE>if (para[i].getParameter() == null)<NEW_LINE>;<NEW_LINE>else if (name.equals("C_AcctSchema_ID"))<NEW_LINE>p_C_AcctSchema_ID = ((BigDecimal) para[i].ge...
para[i].getParameterName();
1,824,554
private boolean areThereNewFiles(final File installLocation) throws IOException {<NEW_LINE>LogManager.log("areThereNewFiles: location " + installLocation);<NEW_LINE>Set<File> installedFiles = new HashSet<File>();<NEW_LINE>Set<File> existentFilesList = FileUtils.getRecursiveFileSet(installLocation);<NEW_LINE>for (Produ...
"Error loading file list for " + product.getUid());
396,667
public ProcessContext<CartOperationRequest> execute(ProcessContext<CartOperationRequest> context) throws Exception {<NEW_LINE><MASK><NEW_LINE>OrderItemRequestDTO orderItemRequestDTO = request.getItemRequest();<NEW_LINE>if (orderItemRequestDTO instanceof NonDiscreteOrderItemRequestDTO) {<NEW_LINE>return context;<NEW_LIN...
CartOperationRequest request = context.getSeedData();
377,397
public void update(EventBean[] newData, EventBean[] oldData) {<NEW_LINE>agentInstanceContext.getInstrumentationProvider().qInfraOnAction(OnTriggerType.ON_MERGE, newData, CollectionUtil.EVENTBEANARRAY_EMPTY);<NEW_LINE>if (newData == null) {<NEW_LINE>agentInstanceContext.getInstrumentationProvider().aInfraOnAction();<NEW...
.getInstrumentationProvider().aInfraOnAction();
1,448,738
public void updateFilters() {<NEW_LINE>updateList(R.id.domainlist, SettingValues.domainFilters, SettingValues.domainFilters::remove);<NEW_LINE>updateList(R.id.subredditlist, SettingValues.subredditFilters, SettingValues.subredditFilters::remove);<NEW_LINE>updateList(R.id.userlist, SettingValues.userFilters, SettingValu...
textFilters, SettingValues.textFilters::remove);
1,133,785
private void readTables(Schema schema, ResultSet rsTable) throws SQLException {<NEW_LINE>if (SHOW_METADATA) {<NEW_LINE>final ResultSetMetaData rsmd = rsTable.getMetaData();<NEW_LINE>int numberOfColumns = rsmd.getColumnCount();<NEW_LINE>for (int x = 1; x <= numberOfColumns; x++) {<NEW_LINE>LOGGER.debug(rsmd.getColumnNam...
mutator().setName(tableName);
1,641,632
public int compare(Integer head1, Integer head2) {<NEW_LINE>if (head1.equals(head2)) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>VcsRef ref1 = myRefsModel.bestRefToHead(head1);<NEW_LINE>VcsRef <MASK><NEW_LINE>if (ref1 == null) {<NEW_LINE>reportNoRefs(head1);<NEW_LINE>if (ref2 == null) {<NEW_LINE>reportNoRefs(head2);<NEW_L...
ref2 = myRefsModel.bestRefToHead(head2);
1,244,745
public void run() {<NEW_LINE>logger.info("Starting server.");<NEW_LINE>InetAddress localAddr = MaryProperties.needInetAddress("socket.addr");<NEW_LINE>int localPort = MaryProperties.needInteger("socket.port");<NEW_LINE>HttpParams params = new BasicHttpParams();<NEW_LINE>// 0 means no timeout, any positive value means t...
registry.register("/features", infoRH);
1,502,303
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>startUpdate_result result = new startUpdate_result();<NEW_LINE>if (e instanceof org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException) {...
INTERNAL_ERROR, e.getMessage());
1,751,325
private static void createSummaries(SummaryGenerator generator, List<String> classesToAnalyze, final boolean doForceOverwrite, String toAnalyze, File outputFolder) {<NEW_LINE>ClassSummaries summaries = generator.createMethodSummaries(toAnalyze, classesToAnalyze, new IClassSummaryHandler() {<NEW_LINE><NEW_LINE>@Override...
out.println("\t" + className);
1,044,071
private static SearchResult retrieveCaches(@NonNull final OCApiConnector connector, @NonNull final GeocacheFilter filter, final int take, final int skip) {<NEW_LINE>// fill in the defaults<NEW_LINE>final Parameters params = new Parameters("search_method", METHOD_SEARCH_ALL);<NEW_LINE>final Map<String, String> valueMap ...
LogEntryGeocacheFilter) baseFilter).getFoundByUser();
300,126
private Mono<Response<StringDictionaryInner>> listFunctionKeysWithResponseAsync(String resourceGroupName, String name, String functionName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and ca...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
461,141
private static void makeRowFactoryForLevel(String classNameRow, String classNameFactory, Class forgeClass, CodegenClassScope classScope, List<CodegenInnerClass> innerClasses, String providerClassName) {<NEW_LINE>CodegenMethod makeMethod = CodegenMethod.makeParentNode(AggregationRow.EPTYPE, AggregationServiceFactoryComp...
recursiveBuildStack(makeMethod, "make", methods);
9,589
public static SceneGraphImage readFromJSON(String json) {<NEW_LINE>try {<NEW_LINE>SceneGraphImage img = new SceneGraphImage();<NEW_LINE>JSONObject obj = (JSONObject) JSONValue.parse(json);<NEW_LINE>JSONArray regions = (JSONArray) obj.get("regions");<NEW_LINE>if (regions != null) {<NEW_LINE>for (JSONObject region : (Lis...
String) obj.get("url");
1,706,738
private List<com.dianping.cat.home.service.entity.Domain> sort(ServiceReport serviceReport, final String sortBy) {<NEW_LINE>List<com.dianping.cat.home.service.entity.Domain> result = new ArrayList<com.dianping.cat.home.service.entity.Domain>(serviceReport.getDomains().values());<NEW_LINE>Collections.sort(result, new Co...
) - d1.getFailureCount());
1,453,543
public Result track() throws Exception {<NEW_LINE>if (!_isEnabled) {<NEW_LINE>// If tracking is disabled, simply return a 200.<NEW_LINE>return status(200);<NEW_LINE>}<NEW_LINE>JsonNode event;<NEW_LINE>try {<NEW_LINE>event = request().body().asJson();<NEW_LINE>} catch (Exception e) {<NEW_LINE>return badRequest();<NEW_LI...
internalServerError(e.getMessage());
518,588
private static <T> TypeToken<T> of(@NonNull Type type) {<NEW_LINE>if (type instanceof WildcardType) {<NEW_LINE>if (((WildcardType) type).getLowerBounds().length == 0) {<NEW_LINE>return of(((WildcardType) type).getUpperBounds()[0]);<NEW_LINE>}<NEW_LINE>throw new IllegalArgumentException("<? super T> is not supported");<...
> componentTypeToken = typeToken.getComponentType();
1,056,055
private void applyInternal(final SnapshotChunk snapshotChunk) throws SnapshotWriteException {<NEW_LINE>if (containsChunk(snapshotChunk.getChunkName())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>checkSnapshotIdIsValid(snapshotChunk.getSnapshotId());<NEW_LINE>final long currentSnapshotChecksum = snapshotChunk.getSnapshotChe...
String chunkName = snapshotChunk.getChunkName();
1,315,953
public Boolean delete(DeleteTransformRequest request, String operator) {<NEW_LINE>LOGGER.info("begin to logic delete transform for request={}", request);<NEW_LINE>Preconditions.checkNotNull(request, "delete request of transform cannot be null");<NEW_LINE>String groupId = request.getInlongGroupId();<NEW_LINE>String stre...
groupCheckService.checkGroupStatus(groupId, operator);