idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
19,231
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>SerialNumber o = emc.f...
ExceptionApplicationNotExist(o.getApplication());
1,698,898
public J.VariableDeclarations visitVariableDeclarations(J.VariableDeclarations multiVariable, P p) {<NEW_LINE>J.VariableDeclarations variableDeclarations = super.visitVariableDeclarations(multiVariable, p);<NEW_LINE>if (getCursor().getParent() != null && getCursor().getParent().firstEnclosing(J.class) instanceof J.Bloc...
).getPrefix())));
383,866
private boolean checkIfBulletExists(String newBullet) {<NEW_LINE>// get the selected node, so we know where to insert the new bullet<NEW_LINE>DefaultMutableTreeNode insert = (DefaultMutableTreeNode) jTreeDesktop.getLastSelectedPathComponent();<NEW_LINE>// now we have to check whether the name of "newBullet" already exi...
DefaultMutableTreeNode) insert.getParent());
1,034,660
synchronized boolean tryLock(final boolean excl) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc3.isEntryEnabled())<NEW_LINE>SibTr.entry(this, <MASK><NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc3.isDebugEnabled())<NEW_LINE>SibTr.debug(this, tc3, "locks=" + locks + ", exclusive=" + exclusive);<NEW_L...
tc3, "tryLock", "excl=" + excl);
838,809
public IPage<NotifyRespDTO> queryPage(NotifyQueryReqDTO reqDTO) {<NEW_LINE>LambdaQueryWrapper<NotifyInfo> queryWrapper = Wrappers.lambdaQuery(NotifyInfo.class).eq(StrUtil.isNotBlank(reqDTO.getTenantId()), NotifyInfo::getTenantId, reqDTO.getTenantId()).eq(StrUtil.isNotBlank(reqDTO.getItemId()), NotifyInfo::getItemId, re...
, each.getType()));
514,036
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.<MASK><NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Cards hand = new CardsImpl(controller.getHand());<NEW_LINE>controller.moveCardsToExile(hand.getCards(game), source, game, false, CardUtil.getExileZoneI...
getPlayer(source.getControllerId());
689,523
final UpdateConnectionResult executeUpdateConnection(UpdateConnectionRequest updateConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateConnectionRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<UpdateConnectionRequest> ...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,231,976
private static Pair<Var, Var> preprocess(Op subOp, Expr e) {<NEW_LINE>if (!(e instanceof E_Equals) && !(e instanceof E_SameTerm))<NEW_LINE>return null;<NEW_LINE>ExprFunction2 eq = (ExprFunction2) e;<NEW_LINE>Expr left = eq.getArg1();<NEW_LINE>Expr right = eq.getArg2();<NEW_LINE>if (!left.isVariable() || !right.isVariab...
), right.asVar());
798,696
private void applyJavaConvention(Project project) {<NEW_LINE>JavaPluginExtension java = project.getExtensions().getByType(JavaPluginExtension.class);<NEW_LINE><MASK><NEW_LINE>java.setTargetCompatibility(JavaVersion.VERSION_1_8);<NEW_LINE>project.getTasks().withType(JavaCompile.class).forEach(compileTask -> {<NEW_LINE>c...
java.setSourceCompatibility(JavaVersion.VERSION_1_8);
1,756,385
private Jwt createJwt(String token, JWT parsedJwt) {<NEW_LINE>try {<NEW_LINE>// Verify the signature<NEW_LINE>JWTClaimsSet jwtClaimsSet = this.jwtProcessor.process(parsedJwt, null);<NEW_LINE>Map<String, Object> headers = new LinkedHashMap<>(parsedJwt.getHeader().toJSONObject());<NEW_LINE>Map<String, Object> claims = th...
logger.trace("Failed to process JWT", ex);
33,642
SetBuilderImpl<E> add(E e) {<NEW_LINE>checkNotNull(e);<NEW_LINE>int eHash = e.hashCode();<NEW_LINE>int <MASK><NEW_LINE>int mask = hashTable.length - 1;<NEW_LINE>for (int i = i0; i - i0 < maxRunBeforeFallback; i++) {<NEW_LINE>int index = i & mask;<NEW_LINE>Object tableEntry = hashTable[index];<NEW_LINE>if (tableEntry ==...
i0 = Hashing.smear(eHash);
1,641,821
public Response renderForm(MultivaluedMap<String, String> formData, List<FormMessage> errors) {<NEW_LINE>String executionId = formExecution.getId();<NEW_LINE>processor.getAuthenticationSession().setAuthNote(AuthenticationProcessor.CURRENT_AUTHENTICATION_EXECUTION, executionId);<NEW_LINE>String code = processor.generate...
action.buildPage(result, form);
889,226
public void execute() throws Exception {<NEW_LINE>File quickstartTmpDir = new File(_dataDir, String.valueOf(System.currentTimeMillis()));<NEW_LINE>File baseDir = new File(quickstartTmpDir, "githubEvents");<NEW_LINE>File dataDir = new File(quickstartTmpDir, "rawdata");<NEW_LINE>Preconditions.checkState(dataDir.mkdirs())...
Color.CYAN, "Query : " + q1);
1,136,689
private static CharSequence fullQueryOrMatrix(CharSequence string, char delimiter, String spaceReplace, boolean encode) throws IllegalArgumentException {<NEW_LINE>final int l = string.length();<NEW_LINE>final StringBuilder stb = new StringBuilder(l + 6);<NEW_LINE>for (int i = 0; i < l; i++) {<NEW_LINE>final char c = st...
"'}' is only allowed as " + "end of a variable name in \"" + string + "\"");
1,576,713
public void checkFile() throws MojoExecutionException {<NEW_LINE>resetExamination();<NEW_LINE>Manifest mf = null;<NEW_LINE>if (jarFile != null) {<NEW_LINE>JarFile jar = null;<NEW_LINE>try {<NEW_LINE>jar = new JarFile(jarFile);<NEW_LINE>mf = jar.getManifest();<NEW_LINE>} catch (Exception exc) {<NEW_LINE>throw new MojoEx...
io.getMessage(), io);
75,490
public EntityHistoryModelDao<M, E> map(final int index, final ResultSet r, final StatementContext ctx) throws SQLException {<NEW_LINE>final UUID id = getUUID(r, "id");<NEW_LINE>final long <MASK><NEW_LINE>final String changeType = r.getString("change_type");<NEW_LINE>final DateTime createdDate = getDateTime(r, "created_...
targetRecordId = r.getLong("target_record_id");
267,978
private void initPriceHistoryTab(final MiniTable table) {<NEW_LINE>final IMsgBL msgBL = Services.get(IMsgBL.class);<NEW_LINE>final Properties ctx = Env.getCtx();<NEW_LINE>// Header<NEW_LINE>final Vector<String> columnNames = new Vector<>();<NEW_LINE>columnNames.add(msgBL.translate(ctx, ihCtx.getC_BPartner_ID() == 0 ? "...
setRowSelectionAllowed(ihCtx.isRowSelectionAllowed());
983,120
static List<RequestObjectResolver> toRequestObjectResolvers(List<RequestConverterFunction> converters, Method method) {<NEW_LINE>final ImmutableList.Builder<RequestObjectResolver> builder = ImmutableList.builder();<NEW_LINE>// Wrap every converters received from a user with a default object resolver.<NEW_LINE>converter...
).forEach(builder::add);
1,334,380
public static IUser addUser(final SQLProvider provider, final String userName) throws CouldntSaveDataException {<NEW_LINE>Preconditions.checkNotNull(provider, "IE00081: provider argument can not be null");<NEW_LINE>Preconditions.checkNotNull(userName, "IE00087: userName argument can not be null");<NEW_LINE>final Connec...
statement.setString(1, userName);
650,133
public byte[] toByteArray() {<NEW_LINE>final int preLongs, outBytes;<NEW_LINE>final boolean empty = itemsSeen_ == 0;<NEW_LINE>final int numItems = (int) Math.min(reservoirSize_, itemsSeen_);<NEW_LINE>if (empty) {<NEW_LINE>preLongs = 1;<NEW_LINE>outBytes = 8;<NEW_LINE>} else {<NEW_LINE>preLongs = Family.RESERVOIR.getMax...
PreambleUtil.insertPreLongs(mem, preLongs);
569,629
public void postProcessApplicationUndeploy(ProcessApplicationInterface processApplication) {<NEW_LINE>// some tests deploy multiple PAs. => only clean DB after last PA is undeployed<NEW_LINE>// if the deployment fails for example during parsing the deployment counter was not incremented<NEW_LINE>// so we have to check ...
ProcessEngine defaultProcessEngine = BpmPlatform.getDefaultProcessEngine();
430,109
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>mScriptResolver = PipeLine.get().getResolver(TomahawkApp.PLUGINNAME_GMUSIC);<NEW_LINE>TextView headerTextView = (TextView) addScrollingViewToFrame(R.layout.config_textview);<NEW_LINE>headerTextView.setText(mScriptResolver.getDescription());<NEW_LINE>Tex...
String) config.get("email");
898,394
private // SQLDCXGRP; PROTOCOL TYPE N-GDA; ENVLID 0xD3; Length Override 1<NEW_LINE>int parseSQLDCGRP(NetSqlca[] rowsetSqlca, int lastRow) {<NEW_LINE>// SQLCODE<NEW_LINE>int sqldcCode = readFastInt();<NEW_LINE>// SQLSTATE<NEW_LINE>String sqldcState = readFastString(5, CCSIDConstants.UTF8);<NEW_LINE>// REASON_CODE<NEW_LI...
sqldcRown = (int) readFastLong();
510,304
private void openKnockoutTCGroup(final String koVersion) {<NEW_LINE>EventQueue.invokeLater(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>TopComponentGroup group = getKnockoutTCGroup();<NEW_LINE>KnockoutTC <MASK><NEW_LINE>knockoutTC.knockoutUsed(pageModel, koVersion);<NEW_LINE>Mode ...
knockoutTC = (KnockoutTC) getKnockoutTC();
532,087
public FreeTrialAccountInfo unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>FreeTrialAccountInfo freeTrialAccountInfo = new FreeTrialAccountInfo();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso...
int originalDepth = context.getCurrentDepth();
1,503,680
public void run() {<NEW_LINE>MessageDialogWithToggle md = new MessageDialogWithToggle(UIUtils.getActiveShell(), Messages.Startup_Notification, null, Messages.Startup_StudioRequiresFirefox, MessageDialog.INFORMATION, new String[] { StringUtil.ellipsify(CoreStrings.BROWSE), download ? Messages.Startup_Download : Messages...
ui.internal.IJSDebugUIConstants.PREF_SKIP_FIREFOX_CHECK);
1,738,636
public void registerMetrics(MetricRegistry metricRegistry, String pipelineId, String stageId) {<NEW_LINE>if (id() == null) {<NEW_LINE>LOG.debug("Not registering metrics for unsaved rule {}", name());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (id() != null) {<NEW_LINE><MASK><NEW_LINE>localExecuted = registerLocalMeter(met...
globalExecuted = registerGlobalMeter(metricRegistry, "executed");
1,577,127
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>// Get the animation container<NEW_LINE>ImageView animationContainer = (ImageView) view.findViewById(R.id.animation_container);<NEW_LINE>// Create the animation backend<NEW_LINE>// In addition, we wrap it with an activity check. Tap th...
.createSampleColorAnimationBackend(getResources()));
1,793,162
final DeleteSchedulingPolicyResult executeDeleteSchedulingPolicy(DeleteSchedulingPolicyRequest deleteSchedulingPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSchedulingPolicyRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Req...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
62,977
private void addMBeanListener() {<NEW_LINE>listener = new NotificationListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void handleNotification(Notification notification, Object handback) {<NEW_LINE>MBeanServerNotification mbsn = (MBeanServerNotification) notification;<NEW_LINE>String objectName = mbsn<MASK><NE...
.getMBeanName().toString();
1,696,030
public KuduSink genStreamSink(AbstractTargetTableInfo targetTableInfo) {<NEW_LINE>KuduTableInfo kuduTableInfo = (KuduTableInfo) targetTableInfo;<NEW_LINE>this.kuduMasters = kuduTableInfo.getKuduMasters();<NEW_LINE>this.tableName = kuduTableInfo.getTableName();<NEW_LINE>this.defaultOperationTimeoutMs = kuduTableInfo.get...
.workerCount = kuduTableInfo.getWorkerCount();
426,025
public static ListProjectTasksResponse unmarshall(ListProjectTasksResponse listProjectTasksResponse, UnmarshallerContext _ctx) {<NEW_LINE>listProjectTasksResponse.setRequestId(_ctx.stringValue("ListProjectTasksResponse.RequestId"));<NEW_LINE>listProjectTasksResponse.setSuccessful(_ctx.booleanValue("ListProjectTasksResp...
("ListProjectTasksResponse.Object[" + i + "].ProjectId"));
67,061
public boolean enterTernaryNode(TernaryNode ternaryNode) {<NEW_LINE>// ternaryNode.getStart() points at '?'<NEW_LINE>int question = ternaryNode.getStart();<NEW_LINE>int actualStart = getNodeStart(ternaryNode);<NEW_LINE>// FIXME If the true or false expression is a function node, the offsets are wrong!<NEW_LINE>// We ty...
JSTokenType.COLON, colon)));
790,031
public KafkaAction unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>KafkaAction kafkaAction = new KafkaAction();<NEW_LINE>reader.beginObject();<...
().unmarshall(context));
1,542,777
protected void visitJspELTextStart(Element jspElement, String cdata, Class expectedType) throws JspCoreException {<NEW_LINE>if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINER)) {<NEW_LINE>logger.logp(Level.FINER, CLASS_NAME, "visitJspELTextStart", "cdata =[" + cdata + "]");<NEW_LI...
.indexOf("#{") + "]");
468,704
protected void addTradeInfoBlock() {<NEW_LINE>TitledGroupBg tradeInfoTitledGroupBg = addTitledGroupBg(gridPane, gridRow, 3, Res.get("portfolio.pending.tradeInformation"));<NEW_LINE>GridPane.setColumnSpan(tradeInfoTitledGroupBg, 2);<NEW_LINE>final Tuple3<Label, TxIdTextField, VBox> labelTxIdTextFieldVBoxTuple3 = addTopL...
timeLeftProgressBar.setMaxWidth(Double.MAX_VALUE);
1,044,042
/* ========== decoding ========== */<NEW_LINE>public void decode(BitReader _in, AACDecoderConfig conf, boolean commonWindow) throws AACException {<NEW_LINE>final SampleFrequency sf = conf.getSampleFrequency();<NEW_LINE>if (sf.equals(SampleFrequency.SAMPLE_FREQUENCY_NONE))<NEW_LINE>throw new AACException("invalid sample...
getProfile(), sf, commonWindow);
296,658
// Writes a .SF file with a digest to the manifest.<NEW_LINE>private static void writeSignatureFile(SignatureOutputStream out, Manifest manifest) throws IOException, GeneralSecurityException {<NEW_LINE>Manifest sf = new Manifest();<NEW_LINE>Attributes main = sf.getMainAttributes();<NEW_LINE><MASK><NEW_LINE>main.putValu...
main.putValue("Signature-Version", "1.0");
440,672
public void verifyModification(ConfigOption option) {<NEW_LINE>Preconditions.checkArgument(graph.getConfiguration().isUpgradeAllowed(option.getName()) || option.getType() != ConfigOption.<MASK><NEW_LINE>Preconditions.checkArgument(option.getType() != ConfigOption.Type.LOCAL, "Cannot change the local configuration optio...
Type.FIXED, "Cannot change the fixed configuration option: %s", option);
1,770,499
public static Resource optimizeNestedResourceChain(final SecurityContext securityContext, final HttpServletRequest request, final Map<Pattern, Class<? extends Resource>> resourceMap, final Value<String> propertyView) throws FrameworkException {<NEW_LINE>final List<Resource> resourceChain = ResourceHelper.parsePath(secu...
resourceChain.get(i + 1);
819,100
public Response apply(ContainerRequestContext containerRequestContext) {<NEW_LINE>final RuntimeResource resource = extendedUriInfo.get().getMatchedRuntimeResources().get(0);<NEW_LINE>// TODO: support multiple resources, see ignored tests in WadlResourceTest.Wadl8Test<NEW_LINE>final UriInfo uriInfo = containerRequestCon...
throw new ProcessingException("Could not marshal the wadl Application.", e);
984,655
final RequestServiceQuotaIncreaseResult executeRequestServiceQuotaIncrease(RequestServiceQuotaIncreaseRequest requestServiceQuotaIncreaseRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(requestServiceQuotaIncreaseRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,117,272
public void run(GrobidServiceConfiguration configuration, Environment environment) {<NEW_LINE><MASK><NEW_LINE>new DropwizardExports(environment.metrics()).register();<NEW_LINE>ServletRegistration.Dynamic registration = environment.admin().addServlet("Prometheus", new MetricsServlet());<NEW_LINE>registration.addMapping(...
LOGGER.info("Service config={}", configuration);
241,711
private boolean matchAnnotationMethod(Field f, String propertyName, String propertyValue) {<NEW_LINE>Annotation[] annotations = fieldAndAnnotationsMap.get(f);<NEW_LINE>if (annotations == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>for (Annotation annotation : annotations) {<NEW_LINE>Class<?> annotationType = ann...
validatorType = validateMap.get(annotationType);
1,713,388
public <T extends OutputStream> T serialize(final FST fst, T os) throws IOException {<NEW_LINE>// Prepare space for arc offsets and linearize all the states.<NEW_LINE>int[] linearized = linearize(fst);<NEW_LINE>int nodeDataLength = 0;<NEW_LINE>if (_withNumbers) {<NEW_LINE>_numbers = FSTUtils.rightLanguageForAllStates(f...
(nodeDataLength << 4) | gtl);
1,173,074
public Mono<Response<FeatureResultInner>> registerWithResponseAsync(String resourceProviderNamespace, String featureName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LI...
error(new IllegalArgumentException("Parameter resourceProviderNamespace is required and cannot be null."));
658,486
public void clusterStateProcessed(ClusterState oldState, ClusterState newState) {<NEW_LINE>logger.trace("[{}] successfully set safe repository generation to [{}]", metadata.name(), newGen);<NEW_LINE>cacheRepositoryData(newRepositoryData, version);<NEW_LINE>threadPool.executor(ThreadPool.Names.SNAPSHOT).execute(ActionRu...
("Failed to clean up old index blobs from before [{}]", newGen), e);
73,447
public static Point adjustLineAndColumn(FileObject fo, int theLine, int theColumn) {<NEW_LINE>if (theLine == -1) {<NEW_LINE>theLine = 1;<NEW_LINE>}<NEW_LINE>if (fo == null) {<NEW_LINE>return new Point(theLine, theColumn);<NEW_LINE>}<NEW_LINE>if (!"java".equalsIgnoreCase(fo.getExt())) {<NEW_LINE>// we do not understand ...
findMethodLineColumn(line, theColumn, br);
846,798
private Long countExpiredTaskTaskCompleted(Business business, DateRange dateRange, String applicationId, String processId, String activityId, List<String> units, String person) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(TaskCompleted.class);<NEW_LINE>CriteriaBuilder cb = em.get...
TaskCompleted_.expired), true));
885,232
private void updateBorderShader() {<NEW_LINE>final int[] colors = mBorderColors;<NEW_LINE>if (colors == null || colors.length == 0) {<NEW_LINE>mBorderAlpha = 0;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>mDestination.set(getPaddingLeft(), getPaddingTop(), getWidth() - getPaddingRight(), getHeight() - getPaddingBottom());<NEW...
cx, cy, sweepColors, positions);
493,400
private List<ByteRecord> range(RedisCommand<?> rangeCommand, byte[] key, Range<String> range, RedisZSetCommands.Limit limit) {<NEW_LINE>Assert.notNull(key, "Key must not be null!");<NEW_LINE>Assert.notNull(range, "Range must not be null!");<NEW_LINE>Assert.notNull(limit, "Limit must not be null!");<NEW_LINE>List<Object...
().orElse("+"));
1,019,750
public void onPermissionRequest(final PermissionRequest request) {<NEW_LINE>SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(ninjaWebView.getContext());<NEW_LINE>Activity activity = (Activity) ninjaWebView.getContext();<NEW_LINE>String[] resources = request.getResources();<NEW_LINE>for (String resou...
setMessage(R.string.hint_DRM_Media);
1,008,696
protected void convertElementToJson(ObjectNode elementNode, ObjectNode propertiesNode, ActivityProcessor processor, BaseElement baseElement, CmmnModel cmmnModel, CmmnJsonConverterContext converterContext) {<NEW_LINE>PlanItem planItem = (PlanItem) baseElement;<NEW_LINE>HumanTask humanTask = (HumanTask) planItem.getPlanI...
ObjectNode formRefNode = objectMapper.createObjectNode();
742,735
ActionResult<WrapOutId> execute(String appDictFlag, String appInfoFlag, String path0, String path1, String path2, String path3, String path4) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<WrapOutId> result = new ActionResult<>();...
path1, path2, path3, path4);
454,751
private boolean initTemplate(int AD_Client_ID) {<NEW_LINE>if (AD_Client_ID == 0)<NEW_LINE>throw new IllegalArgumentException("Client_ID=0");<NEW_LINE>boolean success = true;<NEW_LINE>String sql = "SELECT * FROM C_BPartner " + "WHERE C_BPartner_ID IN (SELECT C_BPartnerCashTrx_ID FROM AD_ClientInfo WHERE AD_Client_ID=?)"...
ResultSet rs = pstmt.executeQuery();
1,089,023
public static void convolve3(Kernel2D_S32 kernel, GrayU16 src, GrayI16 dest, int divisor, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>workspaces = BoofMiscOps.<MASK><NEW_LINE>// CONCURRENT_REMOVE_LINE<NEW_LINE>final DogArray_I32 work = workspaces.grow();<NEW_LINE>final short[] dataSrc = src.data;<NEW_LINE>...
checkDeclare(workspaces, DogArray_I32::new);
1,682,145
private void fillCache() {<NEW_LINE>Rectangle rect = cachedRect;<NEW_LINE>if (recentHits == 0 && numMisses > 0) {<NEW_LINE>assert false : "Cache is being thrashed: " + prevCacheRect + cachedRect;<NEW_LINE>}<NEW_LINE>// preserve settings<NEW_LINE>Scale origScale = new <MASK><NEW_LINE>Rectangle origBounds = new Rectangle...
Scale(renderer.getZoneScale());
1,167,452
public io.kubernetes.client.proto.V1alpha1Settings.PodPreset buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1alpha1Settings.PodPreset result = new io.kubernetes.client.proto.V1alpha1Settings.PodPreset(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_...
.spec_ = specBuilder_.build();
386,113
public void storeTrainedModelConfig(TrainedModelConfig trainedModelConfig, ActionListener<Boolean> listener) {<NEW_LINE>if (MODELS_STORED_AS_RESOURCE.contains(trainedModelConfig.getModelId())) {<NEW_LINE>listener.onFailure(new ResourceAlreadyExistsException(Messages.getMessage(Messages.INFERENCE_TRAINED_MODEL_EXISTS, t...
trainedModelConfig.getModelId())));
1,730,611
private /*<NEW_LINE>* Returns a {@link Class<? extends Dataset>} for this {@link ComputeStepSyntaxElement}, reusing an existing<NEW_LINE>* equivalent implementation from the global class cache when one is available, or otherwise compiling one.<NEW_LINE>*<NEW_LINE>* This method _is_ thread-safe, and uses the locking sem...
ISimpleCompiler compiler = COMPILER.get();
1,080,707
final SetLoadBalancerPoliciesForBackendServerResult executeSetLoadBalancerPoliciesForBackendServer(SetLoadBalancerPoliciesForBackendServerRequest setLoadBalancerPoliciesForBackendServerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(setLoadBalancerPoliciesForBackendServerRequest);<NEW_LIN...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Load Balancing");
1,847,394
public DocumentClassificationJobFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DocumentClassificationJobFilter documentClassificationJobFilter = new DocumentClassificationJobFilter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.g...
JsonToken token = context.getCurrentToken();
997,309
public boolean onOptionsItemSelected(MenuItem item) {<NEW_LINE>if (super.onOptionsItemSelected(item)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (item.getItemId() == R.id.menu_delete_feed) {<NEW_LINE>deleteFeed();<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (item.getItemId() == R.id.menu_notifications_disable) {<N...
FeedIntelTrainerFragment.class.getName());
1,609,295
public void updateView() {<NEW_LINE>long connectionID = mService.getConnectionID();<NEW_LINE>VpnProfile profile = mService.getProfile();<NEW_LINE>State state = mService.getState();<NEW_LINE>ErrorState error = mService.getErrorState();<NEW_LINE>String name = "";<NEW_LINE>if (getActivity() == null) {<NEW_LINE>return;<NEW...
setText(R.string.state_connecting);
1,469,582
public void validatePrototype(IndexPrototype prototype) {<NEW_LINE>IndexType indexType = prototype.getIndexType();<NEW_LINE>if (indexType != IndexType.POINT) {<NEW_LINE>String providerName <MASK><NEW_LINE>throw new IllegalArgumentException("The '" + providerName + "' index provider does not support " + indexType + " in...
= getProviderDescriptor().name();
34,645
public void validateStatement(String contextName, StatementSpecCompiled spec, StatementCompileTimeServices compileTimeServices) throws ExprValidationException {<NEW_LINE>StatementSpecCompiledAnalyzerResult streamAnalysis = StatementSpecCompiledAnalyzer.analyzeFilters(spec);<NEW_LINE>List<FilterSpecCompiled<MASK><NEW_LI...
> filters = streamAnalysis.getFilters();
434,197
public int myAtoi(String str) {<NEW_LINE>int i = 0, n = str.length();<NEW_LINE>while (i < n && Character.isWhitespace(str.charAt(i))) i++;<NEW_LINE>int sign = 1;<NEW_LINE>if (i < n && str.charAt(i) == '+')<NEW_LINE>i++;<NEW_LINE>else if (i < n && str.charAt(i) == '-') {<NEW_LINE>sign = -1;<NEW_LINE>i++;<NEW_LINE>}<NEW_...
? Integer.MAX_VALUE : Integer.MIN_VALUE;
709,631
static Class<?>[] extractTypeParameters(ParameterizedType genericType) {<NEW_LINE>ParameterizedType parameterizedType = genericType;<NEW_LINE>// e.g. ? extends Number<NEW_LINE>Type[] paramTypes = parameterizedType.getActualTypeArguments();<NEW_LINE>Class<?>[] result = new Class<?>[paramTypes.length];<NEW_LINE>for (int ...
<?>) lower[0];
330,716
private void initBucketValues() {<NEW_LINE>List<ColumnValueInfo> columnValues = orderInfo.getColumnValues();<NEW_LINE>bucketValues = new ArrayList<>(columnValues.size());<NEW_LINE>// TODO lucianc handle cases when the values no longer match the groups<NEW_LINE>for (ListIterator<ColumnValueInfo> it = columnValues.listIt...
ColumnValueInfo columnValue = it.next();
31,076
protected Set<Element> evaluateElementTypeExpression(String expr, DslContext context) {<NEW_LINE>Set<Element> elements = new LinkedHashSet<>();<NEW_LINE>String type = expr.substring(ELEMENT_TYPE_EQUALS_EXPRESSION.length());<NEW_LINE>switch(type.toLowerCase()) {<NEW_LINE>case "custom":<NEW_LINE>context.getWorkspace().ge...
).forEach(elements::add);
1,463,392
private void onJoin(Session session, SessionDetails details) {<NEW_LINE>System.out.println("Joined...");<NEW_LINE>mSession = session;<NEW_LINE>SharedPreferences.<MASK><NEW_LINE>editor.putString("xbr_uri", mURI);<NEW_LINE>editor.putString("xbr_realm", mRealm);<NEW_LINE>editor.apply();<NEW_LINE>mStatus.setText("Connected...
Editor editor = mPrefs.edit();
938,925
public void addAuthTokens(@NotNull WebAuthInfo... tokens) throws DBException {<NEW_LINE>WebUser newUser = null;<NEW_LINE>for (WebAuthInfo authInfo : tokens) {<NEW_LINE>if (newUser != null && newUser != authInfo.getUser()) {<NEW_LINE>throw new DBException("Different users specified in auth tokens: " + Arrays.toString(to...
getSessionContext().addSession(authSession);
155,155
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {<NEW_LINE>if (method.equals(OBJECT_EQUALS_METHOD)) {<NEW_LINE>return equalsInternal(args[0]);<NEW_LINE>} else if (method.getName().equals("hashCode")) {<NEW_LINE>return innerObject.hashCode();<NEW_LINE>} else if (method.getDeclaringClass...
Annotation>) args[0]);
1,565,559
public void validate(CreateView createView) {<NEW_LINE>for (ValidationCapability c : getCapabilities()) {<NEW_LINE>validateFeature(c, Feature.createView);<NEW_LINE>validateFeature(c, createView.isOrReplace(), Feature.createOrReplaceView);<NEW_LINE>validateFeature(c, !ForceOption.NONE.equals(createView.getForce()), Feat...
v = getValidator(SelectValidator.class);
1,288,941
private void addVideoMenuPhones(Contact contact) {<NEW_LINE>List<ProtocolProviderService> providers = CallManager.getTelephonyProviders();<NEW_LINE>List<String> videoPhones = contactPhoneUtil.getVideoPhones(contact, null);<NEW_LINE>for (String vphone : videoPhones) {<NEW_LINE>String p = vphone.substring(0, vphone.lastI...
vphone, regionDesktopSharingPrefix + p, null);
222,461
private double readDoubleValue(byte[] bytes, int oid, String targetType) throws PSQLException {<NEW_LINE>// currently implemented binary encoded fields<NEW_LINE>switch(oid) {<NEW_LINE>case Oid.INT2:<NEW_LINE>return ByteConverter.int2(bytes, 0);<NEW_LINE>case Oid.INT4:<NEW_LINE>return <MASK><NEW_LINE>case Oid.INT8:<NEW_...
ByteConverter.int4(bytes, 0);
1,234,217
public Object calculate(Context ctx) {<NEW_LINE>if (srcStr.length() == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>StrProperties sts = new StrProperties();<NEW_LINE>if (option != null) {<NEW_LINE>if (option.indexOf('c') != -1) {<NEW_LINE>sts.setSeperator(",");<NEW_LINE>}<NEW_LINE>if (option.indexOf('j') != -1) {<NEW...
getValue(sts, o, option);
1,074,805
private static VcGenCmdStrings queryVcGenCmd() {<NEW_LINE>String vcReleaseDate = null;<NEW_LINE>String vcManufacturer = null;<NEW_LINE>String vcVersion = null;<NEW_LINE>List<String> vcgencmd = ExecutingCommand.runNative("vcgencmd version");<NEW_LINE>if (vcgencmd.size() >= 3) {<NEW_LINE>// First line is date<NEW_LINE>tr...
copyright[copyright.length - 1];
897,812
private ReferenceContext makeSpanningReferenceContext(final List<VariantContext> variantContexts, final int referenceWindowPadding) {<NEW_LINE>Utils.nonEmpty(variantContexts, "Must have at least one current variant context");<NEW_LINE>final List<String> contigs = variantContexts.stream().map(VariantContext::getContig)....
size() == 1, "variant contexts should all have the same contig");
563,823
public void run() {<NEW_LINE>String propertiesPattern = "*.comet-support-enabled";<NEW_LINE>try {<NEW_LINE>ResultMap<String, String> result = CommandGetProperty.getProperties(instance, propertiesPattern, CommonServerSupport.PROPERTIES_FETCH_TIMEOUT);<NEW_LINE>if (result.getState() == TaskState.COMPLETED) {<NEW_LINE>Str...
String key = entry.getKey();
1,352,488
public Node writeDescriptor(Node parent, EjbBundleDescriptorImpl ejbDesc) {<NEW_LINE>Node jarNode = super.writeDescriptor(parent, ejbDesc);<NEW_LINE>Node entrepriseBeansNode = appendChild(jarNode, EjbTagNames.EJBS);<NEW_LINE>for (EjbDescriptor ejb : ejbDesc.getEjbs()) {<NEW_LINE>if (EjbSessionDescriptor.TYPE.equals(ejb...
"Unknown ejb type " + ejb.getType());
889,509
public static GetSipAgentGroupInfoResponse unmarshall(GetSipAgentGroupInfoResponse getSipAgentGroupInfoResponse, UnmarshallerContext context) {<NEW_LINE>getSipAgentGroupInfoResponse.setRequestId(context.stringValue("GetSipAgentGroupInfoResponse.RequestId"));<NEW_LINE>getSipAgentGroupInfoResponse.setSuccess(context.bool...
(context.stringValue("GetSipAgentGroupInfoResponse.Code"));
1,335,097
public Answer execute(final CreateStoragePoolCommand command, final CitrixResourceBase citrixResourceBase) {<NEW_LINE>final Connection conn = citrixResourceBase.getConnection();<NEW_LINE>final <MASK><NEW_LINE>try {<NEW_LINE>if (command.getCreateDatastore()) {<NEW_LINE>Map<String, String> details = command.getDetails();...
StorageFilerTO pool = command.getPool();
473,561
public OutlierResult run(Relation<? extends NumberVector> relation) {<NEW_LINE>DoubleMinMax mm = new DoubleMinMax();<NEW_LINE>// resulting scores<NEW_LINE>WritableDoubleDataStore oscores = DataStoreUtil.makeDoubleStorage(relation.getDBIDs(), DataStoreFactory.HINT_TEMP | DataStoreFactory.HINT_HOT);<NEW_LINE>// Compute m...
[] covarianceTransposed = inverse(covarianceMatrix);
687,004
private static List<Type> findParametersRecursively(Type type, DotName target, Set<DotName> visitedTypes, IndexView index) {<NEW_LINE>DotName name = type.name();<NEW_LINE>// cache results first<NEW_LINE>if (!visitedTypes.add(name)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// always end at Object<NEW_LINE>if (DOTNAME...
inputClassInfo = fetchFromIndex(name, index);
744,813
private void addNamedNativeQueryMetadata(Class clazz) {<NEW_LINE>ApplicationMetadata appMetadata = kunderaMetadata.getApplicationMetadata();<NEW_LINE>String name, query = null;<NEW_LINE>if (clazz.isAnnotationPresent(NamedQuery.class)) {<NEW_LINE>NamedQuery ann = (NamedQuery) clazz.getAnnotation(NamedQuery.class);<NEW_L...
query(), false, clazz);
1,493,786
private String updateContainer(MetadataContainer container, String parentGUID, String anchorGUID, boolean bNested, String parentQName, Map<String, EntityDetail> assetEntities) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {<NEW_LINE>String methodName = "updateContainer";<NEW_LINE...
verifyOrder(container.getContainer());
1,503,256
@SuppressWarnings("rawtypes")<NEW_LINE>public <T1, T2, R> BatchStage<Entry<K, R>> aggregate3(@Nonnull BatchStageWithKey<T1, ? extends K> stage1, @Nonnull BatchStageWithKey<T2, ? extends K> stage2, @Nonnull AggregateOperation3<? super T, ? super T1, ? super T2, ?, ? extends R> aggrOp) {<NEW_LINE>ComputeStageImplBase com...
((StageWithGroupingBase) stage1).computeStage;
1,019,958
final AcceptCertificateTransferResult executeAcceptCertificateTransfer(AcceptCertificateTransferRequest acceptCertificateTransferRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(acceptCertificateTransferRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
invoke(request, responseHandler, executionContext);
759,902
public IRubyObject evaluate(ThreadContext context, IRubyObject rbQuery, IRubyObject handler) {<NEW_LINE>String query = rbQuery.convertToString().asJavaString();<NEW_LINE>if (!handler.isNil() && !isContainsPrefix(query)) {<NEW_LINE>//<NEW_LINE>// The user has passed in a handler, but isn't using the `nokogiri:` prefix a...
node_set(context, query, handler);
144,907
public LenskitRecommenderEngine loadEngine() throws RecommenderBuildException, IOException {<NEW_LINE>File modelFile = options.get("model_file");<NEW_LINE>if (modelFile == null) {<NEW_LINE>logger.info("creating fresh recommender");<NEW_LINE>LenskitRecommenderEngineBuilder builder = LenskitRecommenderEngine.newBuilder()...
Stopwatch timer = Stopwatch.createStarted();
1,700,357
private static void printAdditionalPointInfo(RouteSegmentResult res) {<NEW_LINE>boolean plus = res.getStartPointIndex() < res.getEndPointIndex();<NEW_LINE>for (int k = res.getStartPointIndex(); k != res.getEndPointIndex(); ) {<NEW_LINE>int[] tp = res.getObject().getPointTypes(k);<NEW_LINE>String[] pointNames = res.getO...
"\t" + bld.toString());
1,097,785
public EnvironmentLanguage unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EnvironmentLanguage environmentLanguage = new EnvironmentLanguage();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
)).unmarshall(context));
921,500
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>jScrollPane1 = new BeanTreeView();<NEW_LINE>jScrollPane1.setBorder(javax.swing.BorderFactory.createEtchedBorder(null, javax.swing.UIManager.getDefaults().getColor("CheckBoxMenuItem...
MAX_VALUE).addContainerGap()));
35,715
public org.python.Object __lt__(org.python.Object other) {<NEW_LINE>if (other instanceof org.python.types.Int) {<NEW_LINE>long other_val = ((org.python.types.Int) other).value;<NEW_LINE>return org.python.types.Bool.getBool(this.value < ((double) other_val));<NEW_LINE>} else if (other instanceof org.python.types.Float) ...
getBool(this.value < 0.0);
182,918
public Dialog onCreateDialog(final Bundle savedInstanceState) {<NEW_LINE>Activity activity = getActivity();<NEW_LINE>Bundle arguments = getArguments();<NEW_LINE>final AlertDialog dialog = createDialog();<NEW_LINE>dialog.setButton(BUTTON_NEGATIVE, activity.getString(R.string.cancel), this);<NEW_LINE>LayoutInflater infla...
size()]), selected);
696,624
public Integer save(SinkRequest request, String operator) {<NEW_LINE>LOGGER.info("begin to save sink info: {}", request);<NEW_LINE>this.checkParams(request);<NEW_LINE>// Check if it can be added<NEW_LINE>String groupId = request.getInlongGroupId();<NEW_LINE>groupCheckService.checkGroupStatus(groupId, operator);<NEW_LIN...
-> sinkField.setId(null));
213,438
protected void createAndStartGrpcServer() throws IOException {<NEW_LINE>if (this.server == null) {<NEW_LINE>final Server localServer <MASK><NEW_LINE>this.server = localServer;<NEW_LINE>localServer.start();<NEW_LINE>final String address = this.factory.getAddress();<NEW_LINE>final int port = this.factory.getPort();<NEW_L...
= this.factory.createServer();
1,448,512
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>getWindow().setFlags(WindowManager.LayoutParams.<MASK><NEW_LINE>getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>detectScreenRotate();<NEW...
FLAG_KEEP_SCREEN_ON, WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
1,101,502
public void marshall(StartTextDetectionFilters startTextDetectionFilters, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (startTextDetectionFilters.getWordFilter() != null) {<NEW_LINE><MASK><NEW_LINE>jsonWriter.name("WordFilter");<NEW_LINE>DetectionFilterJsonMarshaller.getIn...
DetectionFilter wordFilter = startTextDetectionFilters.getWordFilter();