idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
848,708
public void onEditorAction(int actionCode) {<NEW_LINE>HippyMap hippyMap = new HippyMap();<NEW_LINE>hippyMap.pushInt("actionCode", actionCode);<NEW_LINE>hippyMap.pushString("text", getText().toString());<NEW_LINE>switch(actionCode) {<NEW_LINE>case EditorInfo.IME_ACTION_GO:<NEW_LINE>hippyMap.pushString("actionName", "go"...
hippyMap.pushString("actionName", "search");
928,493
protected MetadataObjectInfo<MetaProperty> loadProperty(MetaClassImpl metaClass, Field field) {<NEW_LINE>Collection<RangeInitTask> tasks = new ArrayList<>();<NEW_LINE>MetaPropertyImpl property = new MetaPropertyImpl(metaClass, field.getName());<NEW_LINE>Range.Cardinality cardinality = getCardinality(field);<NEW_LINE>Ma...
Range range = info.getObject();
166,200
public void propertyChange(PropertyChangeEvent ev) {<NEW_LINE>// filter only cookie classes changes<NEW_LINE>if (!Node.PROP_COOKIE.equals(ev.getPropertyName())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// find asociated action<NEW_LINE>final CookieAction a = action.get();<NEW_LINE>if (a == null) {<NEW_LINE>return;<NEW_LI...
.next().get();
713,596
/*<NEW_LINE>* @see<NEW_LINE>* com.sitewhere.microservice.lifecycle.LifecycleComponent#start(com.sitewhere.<NEW_LINE>* spi.microservice.lifecycle.ILifecycleProgressMonitor)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void start(ILifecycleProgressMonitor monitor) throws SiteWhereException {<NEW_LINE>if (isUseDefaultDe...
("Registration manager will use default device type '%s' if none is specified.", getDefaultDeviceTypeToken()));
864,521
// Called from various threads<NEW_LINE>public void sendMessage(NetworkEnvelope networkEnvelope) {<NEW_LINE>long ts = System.currentTimeMillis();<NEW_LINE>log.debug(">> Send networkEnvelope of type: {}", networkEnvelope.getClass().getSimpleName());<NEW_LINE>if (stopped) {<NEW_LINE>log.debug("called sendMessage but was ...
.toProtoNetworkEnvelope().getSerializedSize();
553,036
public void onClick(View view) {<NEW_LINE>int position = spRestriction.getSelectedItemPosition();<NEW_LINE>if (position != AdapterView.INVALID_POSITION) {<NEW_LINE>String query = (position == 0 ? "restrictions" : (String) PrivacyManager.getRestrictions(ActivityMain.this).values().toArray()[position - 1]);<NEW_LINE>WebV...
getSettings().setUserAgentString("Mozilla/5.0");
1,079,841
public void curve(float x1, float y1, float cx1, float cy1, float cx2, float cy2, float x2, float y2, int segments) {<NEW_LINE>check(ShapeType.Line, null, segments * 2 + 2);<NEW_LINE><MASK><NEW_LINE>// Algorithm from: http://www.antigrain.com/research/bezier_interpolation/index.html#PAGE_BEZIER_INTERPOLATION<NEW_LINE>f...
float colorBits = color.toFloatBits();
12,043
private void runAssertionInsertConsume(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE><MASK><NEW_LINE>SupportVirtualDW window = (SupportVirtualDW) getFromContext(env, "/virtualdw/MyVDW");<NEW_LINE>SupportBean supportBean = new SupportBean("S1", 100);<NEW_LINE>window.setData(C...
env.compileDeploy("@public create window MyVDW.test:vdw() as SupportBean", path);
521,516
public com.amazonaws.services.schemas.model.ForbiddenException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.schemas.model.ForbiddenException forbiddenException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LIN...
schemas.model.ForbiddenException(null);
766,013
public Expression visitSubst(SubstExpression expr, Void params) {<NEW_LINE><MASK><NEW_LINE>if (arg instanceof InferenceReferenceExpression) {<NEW_LINE>Expression substExpr = ((InferenceReferenceExpression) arg).getSubstExpression();<NEW_LINE>if (substExpr == null) {<NEW_LINE>ExprSubstitution newSubst = new ExprSubstitu...
Expression arg = expr.getExpression();
996,354
public void launchService(Activity activity, MbwManager mbwManager, Address activeReceivingAddress, CryptoCurrency cryptoCurrency) {<NEW_LINE>if (!mbwManager.getSelectedAccount().canSpend()) {<NEW_LINE>new Toaster(activity).toast(R.string.lt_warning_watch_only_account, false);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!...
ACTIVE_TRADES : LtMainActivity.TAB_TYPE.DEFAULT);
1,676,762
private String format(String message, Object[] params) {<NEW_LINE>if (params == null) {<NEW_LINE>return message;<NEW_LINE>}<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>int index = 0;<NEW_LINE>while (index < message.length()) {<NEW_LINE>int next = message.indexOf('{', index);<NEW_LINE>if (next < 0) {<NEW_L...
.substring(paramStart, next));
526,879
public AutoRollbackConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AutoRollbackConfiguration autoRollbackConfiguration = new AutoRollbackConfiguration();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
int originalDepth = context.getCurrentDepth();
657,454
public String toTraceString() {<NEW_LINE>if (_traceableString == null) {<NEW_LINE>if (_password != null) {<NEW_LINE>try {<NEW_LINE>MessageDigest digester = MessageDigest.getInstance("SHA-512");<NEW_LINE>digester.update(SALT);<NEW_LINE>for (char c : _password) {<NEW_LINE>digester.update((byte) ((c & 0xFF00) >> 8));<NEW_...
(Integer.toHexString(i));
925,782
public boolean run(TreeLogger logger) throws UnableToCompleteException {<NEW_LINE>for (String moduleName : options.getModuleNames()) {<NEW_LINE>int[] permsToRun = options.getPermsToCompile();<NEW_LINE>File compilerWorkDir = options.getCompilerWorkDir(moduleName);<NEW_LINE>File precompilationFile = new File(compilerWork...
precompileResults = readPrecompilationFile(logger, precompilationFile);
1,000,948
protected AnnotationNode annotation(AST annotationNode) {<NEW_LINE>annotationBeingDef = true;<NEW_LINE>AST node = annotationNode.getFirstChild();<NEW_LINE>AnnotationNode annotatedNode = new AnnotationNode(makeType(annotationNode));<NEW_LINE>// GRECLIPSE end<NEW_LINE>configureAST(annotatedNode, annotationNode);<NEW_LINE...
= (sourceChars.length - 1);
1,530,607
public void clearExpiredEvents() {<NEW_LINE>// By default, realm provider is always "jpa", so we can optimize and delete all events in single SQL, assuming that realms are saved in the DB as well.<NEW_LINE>// Fallback to model API just with different realm provider than "jpa" (This is never the case in standard Keycloa...
tracef("Deleted %d events for the expiration %d", currentNumDeleted, expiration);
1,084,689
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>buttonGroup1 = new javax.swing.ButtonGroup();<NEW_LINE>panelLaF = new javax.swing.JPanel();<NEW_LINE>checkMaximizeNativeLaF...
(LafPanel.class, "LafPanel.lblLaf.text"));
1,806,818
public static void closeResource(Throwable throwable, Object resource) throws Throwable {<NEW_LINE>if (resource == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (API_LEVEL >= 19) {<NEW_LINE>((AutoCloseable) resource).close();<NEW_LINE>} else {<NEW_LINE>if (resource instanceof Closeable) {<NEW_LINE>((<M...
Closeable) resource).close();
792,411
private void initColumnsData() {<NEW_LINE>columnCount = 3;<NEW_LINE>// Width of the first column fits to width<NEW_LINE>columnWidths = new int[columnCount - 1];<NEW_LINE>columnNames = new String[columnCount];<NEW_LINE>columnToolTips = new String[columnCount];<NEW_LINE>columnRenderers = new TableCellRenderer[columnCount...
columnWidths[2 - 1] = maxWidth;
919,077
public void testJMS1DeliveryMode() throws JMSException, InterruptedException, TestException {<NEW_LINE>try (QueueSession session = queueConnection_.createQueueSession(false, javax.jms.Session.AUTO_ACKNOWLEDGE)) {<NEW_LINE>MessageProducer producer = session.createProducer(queueOne_);<NEW_LINE>MessageConsumer consumer = ...
throw new TestException("Unexpected exception", jmsException);
335,650
// generateNotification.<NEW_LINE>@WrapInTransaction<NEW_LINE>private void saveNotification(final NotificationDTO dto, final NotificationData data, final Visibility visibility, final String visibilityId, final NotificationLevel level, final String userId, final Locale locale) throws DotSecurityException, DotDataExcepti...
Payload(notificationBean, visibility, visibilityId);
1,850,047
public static ListDeviceDistributeJobResponse unmarshall(ListDeviceDistributeJobResponse listDeviceDistributeJobResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDeviceDistributeJobResponse.setRequestId(_ctx.stringValue("ListDeviceDistributeJobResponse.RequestId"));<NEW_LINE>listDeviceDistributeJobResponse.setSuccess(...
("ListDeviceDistributeJobResponse.Data.JobInfo[" + i + "].Status"));
334,815
public static GImageGray wrap(ImageGray image) {<NEW_LINE>if (image.getClass() == GrayU8.class)<NEW_LINE>return new GSingle_U8((GrayU8) image);<NEW_LINE>else if (image.getClass() == GrayS8.class)<NEW_LINE>return new GSingle_S8((GrayS8) image);<NEW_LINE>else if (image.getClass() == GrayU16.class)<NEW_LINE>return new GSi...
new GSingle_S16((GrayS16) image);
303,982
private static void writeCommandConfigJson(JsonGenerator json, HystrixCommandKey key, HystrixCommandConfiguration commandConfig) throws IOException {<NEW_LINE>json.writeObjectFieldStart(key.name());<NEW_LINE>json.writeStringField("threadPoolKey", commandConfig.getThreadPoolKey().name());<NEW_LINE>json.writeStringField(...
getGroupKey().name());
1,798,085
Expr atom() {<NEW_LINE>Tok tok = peek();<NEW_LINE>switch(tok.sym) {<NEW_LINE>case LPAREN:<NEW_LINE>move();<NEW_LINE>Expr expr = expr();<NEW_LINE>match(Sym.RPAREN);<NEW_LINE>return expr;<NEW_LINE>case ID:<NEW_LINE>move();<NEW_LINE>return new Id(tok.value());<NEW_LINE>case STR:<NEW_LINE>move();<NEW_LINE>return new Const(...
value() + "\"", location);
904,240
private void detectLandmarksInImages() {<NEW_LINE>// Remove the previously displayed images<NEW_LINE>SwingUtilities.invokeLater((<MASK><NEW_LINE>int numStereoPairs;<NEW_LINE>synchronized (lockInput) {<NEW_LINE>if (inputImages == null)<NEW_LINE>return;<NEW_LINE>numStereoPairs = inputImages.size();<NEW_LINE>}<NEW_LINE>al...
) -> imageListPanel.clearImages());
1,346,682
public static void fixedLagSmoothingDemo() {<NEW_LINE>System.out.println("DEMO: Fixed-Lag-Smoothing");<NEW_LINE>System.out.println("=========================");<NEW_LINE>System.out.println("Lag = 1");<NEW_LINE>System.out.println("-------");<NEW_LINE>FixedLagSmoothing uw = new FixedLagSmoothing(HMMExampleFactory.getUmbr...
smoothed = uw.fixedLagSmoothing(e1);
1,443,690
public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new ResultSetOutputFirstWhenThen());<NEW_LINE>execs.add(new ResultSet1NoneNoHavingNoJoin());<NEW_LINE>execs.add(new ResultSet2NoneNoHavingJoin());<NEW_LINE>execs.add(new Res...
.add(new ResultSet12AllHavingJoin());
281,935
private static void readColumnTopsForPartition(LongList tops, ObjList<String> columnNames, int columnCount, int partitionBy, long partitionTimestamp, long partitionNameTxn, FilesFacade ff, Path path, int pathLen) {<NEW_LINE>tops.add(partitionTimestamp);<NEW_LINE>path.trimTo(pathLen);<NEW_LINE>setPathForPartition(path, ...
int partitionPathLen = path.length();
189,583
private void fillDeserializedKvBuilder(ConsumerRecord<Bytes, Bytes> rec, boolean isKey, DeserializedKeyValueBuilder builder) {<NEW_LINE>Optional<Integer> schemaId = extractSchemaIdFromMsg(rec, isKey);<NEW_LINE>Optional<MessageFormat> format = schemaId.flatMap(this::getMessageFormatBySchemaId);<NEW_LINE>if (schemaId.isP...
keyFormat(FALLBACK_FORMATTER.getFormat());
1,404,650
private static Coercing makeCoercer(Class<?> javaType, IJsonFormatTypeCoercer formatCoercer) {<NEW_LINE>return new Coercing() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Object parseValue(Object input) throws CoercingParseValueException {<NEW_LINE>try {<NEW_LINE>return formatCoercer.coerce(input, javaType);<NEW_LINE...
) input).getValue());
711,828
public void RestoreAllStreamSettings() {<NEW_LINE>Common.logger.add(new LogEntry(LogEntry.PB_LOG_INFO, "Restoring All Audio Stream Channel Settings"));<NEW_LINE>AudioManager am = (AudioManager) Common.mainActivity.getSystemService(Context.AUDIO_SERVICE);<NEW_LINE>am.setStreamVolume(AudioManager.STREAM_ALARM, StreamSett...
[AudioManager.STREAM_SYSTEM], 0);
1,689,938
public BatchUpdateResult<Long, Greeting> batchUpdate(BatchPatchRequest<Long, Greeting> entityUpdates) {<NEW_LINE>final Map<Long, UpdateResponse> responseMap = new HashMap<>();<NEW_LINE>responseMap.put(3l, new UpdateResponse(HttpStatus.S_201_CREATED));<NEW_LINE>if (entityUpdates.getData().containsKey(1l)) {<NEW_LINE>// ...
BatchUpdateResult<>(responseMap, null);
1,347,765
private void checkMiddlemanAction(Action action, EventHandler handler, MetadataHandler metadataHandler) {<NEW_LINE>if (!cacheConfig.enabled()) {<NEW_LINE>// Action cache is disabled, don't generate digests.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>String cacheKey = middleman.getExecPathString();<NEW_LINE>Ac...
Artifact middleman = action.getPrimaryOutput();
480,830
public void render(StyledTable model, StyledTextOutput output) {<NEW_LINE>int[] colWidths = new int[model.headers.size()];<NEW_LINE>for (int i = 0; i < model.headers.size(); i++) {<NEW_LINE>int finalI = i;<NEW_LINE>colWidths[i] = Stream.concat(Stream.of(model.headers.get(i)), model.rows.stream().map(row -> row.text.get...
colWidths, row.text, ' ');
985,166
protected JedisCommands createJedisCommands(RedisProperties properties, ConductorProperties conductorProperties, HostSupplier hostSupplier, TokenMapSupplier tokenMapSupplier) {<NEW_LINE>GenericObjectPoolConfig<?> genericObjectPoolConfig = new GenericObjectPoolConfig<>();<NEW_LINE>genericObjectPoolConfig.setMinIdle(prop...
":" + host.getPort());
1,691,342
@Override<NEW_LINE>protected Component createLayout(PropertyBuilder propertyBuilder, @Nonnull Disposable uiDisposable) {<NEW_LINE>TextDiffSettingsHolder.TextDiffSettings textDiffSettings = TextDiffSettingsHolder.TextDiffSettings.getSettings();<NEW_LINE>DiffSettingsHolder.DiffSettings diffSettings = DiffSettingsHolder.D...
modes = new ArrayList<>();
280,730
public void testCriteriaQuery_char(TestExecutionContext testExecCtx, TestExecutionResources testExecResources, Object managedComponentObject) throws Throwable {<NEW_LINE>final String testName = getTestName();<NEW_LINE>// Verify parameters<NEW_LINE>if (testExecCtx == null || testExecResources == null) {<NEW_LINE>Assert....
> testProps = testExecCtx.getProperties();
163,043
private void showDialog() {<NEW_LINE>AlertDialog.Builder builder = new <MASK><NEW_LINE>LayoutInflater inflater = getActivity().getLayoutInflater();<NEW_LINE>View view = inflater.inflate(R.layout.dialog_add_keyword, null);<NEW_LINE>EditText keywordEditText = ButterKnife.findById(view, R.id.add_keyword_text);<NEW_LINE>bu...
AlertDialog.Builder(getActivity());
1,139,500
public HighlightInfo createHighlightInfo() {<NEW_LINE>return LaRequestUtil.getOptionalRequest().map(req -> {<NEW_LINE>final HighlightInfo highlightInfo = new HighlightInfo();<NEW_LINE>final String widthStr = req.getParameter(SCREEN_WIDTH);<NEW_LINE>if (StringUtil.isNotBlank(widthStr)) {<NEW_LINE>final int width = Integ...
session.setAttribute(SCREEN_WIDTH, width);
1,060,943
public void basicParameterValidation(String name, String description, String namespace) throws AnnotationValidationException {<NEW_LINE>// Check if the @Extension name is empty.<NEW_LINE>if (name.isEmpty()) {<NEW_LINE>throw new AnnotationValidationException(MessageFormat.format("The @Extension -> name " + " annotated i...
("The @Extension -> description " + "annotated in class {0} is null or empty.", extensionClassFullName));
1,174,092
final CreateHyperParameterTuningJobResult executeCreateHyperParameterTuningJob(CreateHyperParameterTuningJobRequest createHyperParameterTuningJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createHyperParameterTuningJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
105,097
public boolean isAvailable(@NotNull Project project, Editor editor, @NotNull PsiElement element) {<NEW_LINE><MASK><NEW_LINE>if (unknownNamedType != null) {<NEW_LINE>final Set<IElementType> definitionTypes = Sets.newHashSet();<NEW_LINE>final JSGraphQLEndpointArgumentsDefinition arguments = PsiTreeUtil.getParentOfType(un...
final JSGraphQLEndpointNamedTypePsiElement unknownNamedType = getUnknownNamedType(element);
476,081
private void enlistHbmXmlMapping(Collector collector, JaxbHbmHibernateMapping mapping) {<NEW_LINE><MASK><NEW_LINE>String packagePrefix = packageValue == null ? "" : packageValue + ".";<NEW_LINE>for (JaxbHbmRootEntityType entity : mapping.getClazz()) {<NEW_LINE>enlistHbmXmlEntity(collector, packagePrefix, entity, entity...
String packageValue = mapping.getPackage();
1,499,763
protected void findObjectsByMask(@NotNull MySQLExecutionContext executionContext, @NotNull JDBCSession session, @NotNull DBSObjectType objectType, @NotNull ObjectsSearchParams params, @NotNull List<DBSObjectReference> references) throws SQLException {<NEW_LINE>MySQLCatalog catalog = params.getParentObject() instanceof ...
session, catalog, params, references);
1,305,198
public void processMessage(final WebSocketMessage webSocketData) {<NEW_LINE>setDoTransactionNotifications(true);<NEW_LINE>final PropertyKey<String> contentKey = StructrApp.key(Content.class, "content");<NEW_LINE>final AbstractNode node = getNode(webSocketData.getId());<NEW_LINE>final String patch = webSocketData.getNod...
).build(), true);
1,344,046
protected boolean changeStatus(PrimaryStorageStatus status) {<NEW_LINE>self = dbf.reload(self);<NEW_LINE>if (status == self.getStatus()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>PrimaryStorageStatus oldStatus = self.getStatus();<NEW_LINE>self.setStatus(status);<NEW_LINE>self = dbf.updateAndRefresh(self);<NEW_LINE>P...
(), oldStatus, status));
1,567,916
private int writeParticipantUndoFile(final String filePath, final Class<HmilyParticipantUndo> clazz, final Long undoId, final int status) {<NEW_LINE>if (!isRead(filePath)) {<NEW_LINE>return HmilyRepository.FAIL_ROWS;<NEW_LINE>}<NEW_LINE>LOCK<MASK><NEW_LINE>try {<NEW_LINE>byte[] bytes = Files.readAllBytes(Paths.get(file...
.writeLock().lock();
265,119
final StartCrawlerResult executeStartCrawler(StartCrawlerRequest startCrawlerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startCrawlerRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<StartCrawlerRequest> request = null;<NEW_LINE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,614,448
final CreateWorkspaceResult executeCreateWorkspace(CreateWorkspaceRequest createWorkspaceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createWorkspaceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix);
676,598
public void lower(DynamicNewArrayNode newArrayNode, HotSpotRegistersProvider registers, LoweringTool tool) {<NEW_LINE>StructuredGraph graph = newArrayNode.graph();<NEW_LINE>OptionValues localOptions = graph.getOptions();<NEW_LINE>Arguments args = new Arguments(allocateArrayDynamic, newArrayNode.graph().getGuardsStage()...
template = template(newArrayNode, args);
525,276
public static String bytes2hex(byte[] bs, int off, int len) {<NEW_LINE>if (off < 0) {<NEW_LINE>throw new IndexOutOfBoundsException("bytes2hex: offset < 0, offset is " + off);<NEW_LINE>}<NEW_LINE>if (len < 0) {<NEW_LINE>throw new IndexOutOfBoundsException("bytes2hex: length < 0, length is " + len);<NEW_LINE>}<NEW_LINE>i...
[b >> 4 & MASK4];
475,516
final GetManagedPrefixListEntriesResult executeGetManagedPrefixListEntries(GetManagedPrefixListEntriesRequest getManagedPrefixListEntriesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getManagedPrefixListEntriesRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,033,934
/* (non-Javadoc)<NEW_LINE>* @see com.kkalice.adempiere.migrate.DBObjectInterface#createObject(com.kkalice.adempiere.migrate.MigrateLogger, com.kkalice.adempiere.migrate.MigrateDBEngine, com.kkalice.adempiere.migrate.DBConnection, java.lang.String, java.util.HashMap, java.util.HashMap)<NEW_LINE>*/<NEW_LINE>public boolea...
DBObject_Operator_Definition) contentMap.get(0);
143,938
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>requestWindowFeature(Window.FEATURE_NO_TITLE);<NEW_LINE>logDebug("onCreate first");<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>if (shouldRefreshSessionDueToSDK() || shouldRefreshSessionDueToKarere()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (save...
findViewById(R.id.contact_properties_main_activity_layout);
1,242,994
public void cleanup() {<NEW_LINE>logger.info("Shutting down Terasology...");<NEW_LINE>changeStatus(StandardGameStatus.SHUTTING_DOWN);<NEW_LINE>if (currentState != null) {<NEW_LINE>currentState.dispose(true);<NEW_LINE>currentState = null;<NEW_LINE>}<NEW_LINE>Iterator<EngineSubsystem> preshutdownIter = allSubsystems.desc...
EngineSubsystem subsystem = preshutdownIter.next();
917,385
public DeleteVocabularyResult deleteVocabulary(DeleteVocabularyRequest deleteVocabularyRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteVocabularyRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
944,544
protected void readBinaryChildren(ClassFile classFile, HashMap newElements, IBinaryType typeInfo) {<NEW_LINE>ArrayList childrenHandles = new ArrayList();<NEW_LINE>BinaryType type = (BinaryType) classFile.getType();<NEW_LINE>ArrayList typeParameterHandles = new ArrayList();<NEW_LINE>if (typeInfo != null) {<NEW_LINE>// m...
getGenericSignature(), newElements, typeParameterHandles);
1,191,083
final CreateImagePipelineResult executeCreateImagePipeline(CreateImagePipelineRequest createImagePipelineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createImagePipelineRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,056,772
protected SR createIsoSRbyURI(final Connection conn, final URI uri, final String vmName, final boolean shared) {<NEW_LINE>try {<NEW_LINE>final Map<String, String> deviceConfig = new HashMap<String, String>();<NEW_LINE>String path = uri.getPath();<NEW_LINE>path = path.replace("//", "/");<NEW_LINE>deviceConfig.put("locat...
<String, String>());
699,460
private static void evolve(final EngineParam params, final BufferedImage image, final File outputDir, final long generations, final int generationGap) {<NEW_LINE>println("Starting evolution.");<NEW_LINE>final EvolvingImagesWorker worker = EvolvingImagesWorker.of(params, image);<NEW_LINE>final AtomicReference<Phenotype<...
), image.getHeight());
1,570,735
private void invokeConfigInit(MethodVisitor mv, PackageID packageID) {<NEW_LINE>String configClass = JvmCodeGenUtil.getModuleLevelClassName(packageID, CONFIGURATION_CLASS_NAME);<NEW_LINE>mv.visitVarInsn(ALOAD, 0);<NEW_LINE>mv.visitMethodInsn(INVOKESTATIC, LAUNCH_UTILS, "getConfigurationDetails", "()L" + TOML_DETAILS + ...
"configContent", "L" + STRING_VALUE + ";");
948,185
private static void createInnerUser(SystemConfig config, String addr, String passwd) throws SQLException {<NEW_LINE>String sqlDropUser = "DROP USER IF EXISTS %s";<NEW_LINE>String sqlCreateUser = "CREATE USER %s IDENTIFIED WITH mysql_native_password BY '%s'";<NEW_LINE>String sqlGrantPrivileges = "GRANT ALL PRIVILEGES ON...
.format(sqlGrantPrivileges, userName));
1,648,472
// private long threadTimeCompensation0, threadTimeCompensation1;<NEW_LINE>private TimedCPUCCTNode filterCCT(final TimedCPUCCTNode rootNode) {<NEW_LINE>TimedCPUCCTNode newRoot = (TimedCPUCCTNode) rootNode.clone();<NEW_LINE>// threadTimeCompensation0 = threadTimeCompensation1 = 0;<NEW_LINE>int nChildren = (rootNode.getC...
)[i], newRoot));
128,455
public double update(Vec x, Vec grad, double eta, double bias, double biasGrad) {<NEW_LINE>gSqrd.mutableMultiply(rho);<NEW_LINE>biasGSqrd *= rho;<NEW_LINE>for (IndexValue iv : grad) {<NEW_LINE>final int indx = iv.getIndex();<NEW_LINE>final double grad_i = iv.getValue();<NEW_LINE>// step 4<NEW_LINE>gSqrd.increment(indx,...
(biasGSqrd + eps)) * biasGrad;
138,277
public int internalPrepare() throws HeuristicMixedException, HeuristicHazardException, HeuristicRollbackException, IllegalStateException, SystemException {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "internalPrepare");<NEW_LINE>final int result;<NEW_LINE>final int state = _status.getState();<NEW_LINE>if (s...
Tr.exit(tc, "internalPrepare");
324,548
private void updateTranslations(int mailTextId, MRefList reference) {<NEW_LINE>String tableName = I_R_MailText.Table_Name + "_Trl";<NEW_LINE>//<NEW_LINE>List<PO> translationList = new Query(getCtx(), tableName, I_R_MailText.COLUMNNAME_R_MailText_ID + " = ?", get_TrxName()).setParameters(mailTextId).<PO>list();<NEW_LINE...
get_Translation(I_R_MailText.COLUMNNAME_Name, language);
481,842
static IntervalIterator intervals(BytesRef term, TermsEnum te) throws IOException {<NEW_LINE>PostingsEnum pe = te.postings(null, PostingsEnum.POSITIONS);<NEW_LINE>float cost = termPositionsCost(te);<NEW_LINE>return new IntervalIterator() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int docID() {<NEW_LINE>return pe.do...
+ ":" + super.toString();
1,650,199
void walkModuleImage(final JRTUtil.JrtFileVisitor<java.nio.file.Path> visitor, final int notify) throws IOException {<NEW_LINE>if (this.subReleases != null && this.subReleases.length > 0) {<NEW_LINE>for (String rel : this.subReleases) {<NEW_LINE>Path p = this.fs.getPath(rel);<NEW_LINE>Files.walkFileTree(p, new JRTUtil....
mod = dir.getName(1);
61,468
public void runSupport() {<NEW_LINE>// no synchronization here - might have already been<NEW_LINE>// downloaded<NEW_LINE>ImageLoaderRefInfo refInfoFromImageMap = getRefInfoFromImageMap(sizedImageKey);<NEW_LINE>if (refInfoFromImageMap != null) {<NEW_LINE>Image[] images = refInfoFromImageMap.getImages();<NEW_LINE>if (ima...
imageDownloaded(image, sizedImageKey, false);
243,746
final GetModelResult executeGetModel(GetModelRequest getModelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getModelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R...
invoke(request, responseHandler, executionContext);
971,554
public static void onBlockActivated(PlayerInteractEvent.RightClickBlock event) {<NEW_LINE>Level world = event.getWorld();<NEW_LINE>BlockPos pos = event.getPos();<NEW_LINE>Player player = event.getPlayer();<NEW_LINE><MASK><NEW_LINE>ItemStack heldItem = player.getItemInHand(hand);<NEW_LINE>if (player.isShiftKeyDown() || ...
InteractionHand hand = event.getHand();
1,660,312
public static DescribeDnatEntriesResponse unmarshall(DescribeDnatEntriesResponse describeDnatEntriesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDnatEntriesResponse.setRequestId(_ctx.stringValue("DescribeDnatEntriesResponse.RequestId"));<NEW_LINE>describeDnatEntriesResponse.setTotalCount(_ctx.integerValue("De...
("DescribeDnatEntriesResponse.DnatEntries[" + i + "].IpProtocol"));
772,383
public boolean edit(Consumer<String> logConsumer) {<NEW_LINE>List<String> lines = supplier.get();<NEW_LINE>List<String> newLines = new LinkedList<>();<NEW_LINE>StringBuilder diff = new StringBuilder();<NEW_LINE>boolean modified = false;<NEW_LINE>for (String line : lines) {<NEW_LINE>LineEdit edit = editor.edit(line);<NE...
accept("Patching file " + name + diffDescription);
987,327
// GEN-LAST:event_deleteAllSQLButtonActionPerformed<NEW_LINE>private void insertSQL() {<NEW_LINE>try {<NEW_LINE>JEditorPane pane = (JEditorPane) EditorRegistry.lastFocusedComponent();<NEW_LINE>String mime = pane.getContentType();<NEW_LINE>if (mime.equals(SQLDataLoader.SQL_MIME_TYPE)) {<NEW_LINE>editorPane = pane;<NEW_L...
, 1)).trim();
82,743
private static void addSubclause(RoutingRule rr, RouteAttributeContext ctx) {<NEW_LINE>boolean not = <MASK><NEW_LINE>if (!Algorithms.isEmpty(rr.param)) {<NEW_LINE>ctx.getLastRule().registerAndParamCondition(rr.param, not);<NEW_LINE>}<NEW_LINE>if (!Algorithms.isEmpty(rr.t)) {<NEW_LINE>ctx.getLastRule().registerAndTagVal...
"ifnot".equals(rr.tagName);
85,649
void assembleMessageParameters() {<NEW_LINE>mAid = SecureUtils.calculateK4(mAppKey.getKey());<NEW_LINE>final ByteBuffer paramsBuffer;<NEW_LINE>LOG.info("State: " + (mState ? "ON" : "OFF"));<NEW_LINE>if (mTransitionSteps == null || mTransitionResolution == null || mDelay == null) {<NEW_LINE>paramsBuffer = ByteBuffer.all...
LOG.info("Transition step resolution: " + mTransitionResolution);
811,912
public void onEntityCollision(Level world, Entity entity) {<NEW_LINE>if (!world.isClientSide && entity != null && entity.isAlive()) {<NEW_LINE>SawmillTileEntity master = master();<NEW_LINE>if (master == null)<NEW_LINE>return;<NEW_LINE>if (new BlockPos(0, 1, 1).equals(posInMultiblock) && entity instanceof ItemEntity) {<...
master.insertItemToProcess(stack, false);
761,211
public List<UserAssetLink> findUserAssetLinks(String realm, List<String> userIds, List<String> assetIds) {<NEW_LINE>if (realm == null && (userIds == null || userIds.isEmpty()) && (assetIds == null || assetIds.isEmpty())) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>return persistenceService.doReturnin...
parameters.put("realm", realm);
1,527,714
private Optional<PlanNode> rewriteToNonDefaultAggregation(ApplyNode applyNode, Context context) {<NEW_LINE>checkState(applyNode.getSubquery().getOutputSymbols().isEmpty(), "Expected subquery output symbols to be pruned");<NEW_LINE>Symbol subqueryTrue = context.getSymbolAllocator().newSymbol("subqueryTrue", BOOLEAN);<NE...
), context.getLookup());
1,719,517
private void writeBlobMultipart(BlobInfo blobInfo, byte[] buffer, int offset, int blobSize, boolean failIfAlreadyExists) throws IOException {<NEW_LINE>assert blobSize <= getLargeBlobThresholdInBytes() : "large blob uploads should use the resumable upload method";<NEW_LINE>try {<NEW_LINE>final Storage.BlobTargetOption[]...
: new Storage.BlobTargetOption[0];
216,207
public void writeMetrics(Settings settings, SourceMetric metric) throws Exception {<NEW_LINE>long totalrows = metric.getTotalRows().count();<NEW_LINE>long elapsed = metric.elapsed() / 1000000;<NEW_LINE>long bytes = metric.getTotalSizeInBytes().count();<NEW_LINE>double dps = totalrows * 1000.0 / elapsed;<NEW_LINE>// avo...
= bytes / (totalrows + 1);
1,363,509
private void writeBundleClass() {<NEW_LINE>// Package declaration<NEW_LINE>String packageName = bundleClass.getPackageName();<NEW_LINE>if (packageName.length() > 0) {<NEW_LINE>writer.write("package %1$s;", packageName);<NEW_LINE>writer.newline();<NEW_LINE>}<NEW_LINE>// Imports<NEW_LINE>writer.write("import %s;", client...
"import %s;", doNotEmbedType.getQualifiedSourceName());
440,111
public void exceptionCaught(ChannelHandlerContext ctx, Throwable e) {<NEW_LINE>Throwable cause = getCause(e);<NEW_LINE>if (cause instanceof PrematureChannelClosureException || cause instanceof ClosedChannelException)<NEW_LINE>return;<NEW_LINE>Channel channel = ctx.channel();<NEW_LINE>NettyResponseFuture<?> future = nul...
= (NettyResponseFuture<?>) attribute;
470,546
private void onClone() {<NEW_LINE>try {<NEW_LINE>myEditor.apply();<NEW_LINE>} catch (ConfigurationException ignore) {<NEW_LINE>}<NEW_LINE>final FileTemplate selected = myCurrentTab.getSelectedTemplate();<NEW_LINE>if (selected == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final FileTemplate[] templates = myCurrentTab....
names = new HashSet<>();
1,680,165
private DefaultDatabaseInfo parseSimpleUrl(String url, StringMaker maker) {<NEW_LINE>// thin driver<NEW_LINE>// jdbc:oracle:thin:@hostname:port:SID<NEW_LINE>// "jdbc:oracle:thin:MYWORKSPACE/qwerty@localhost:1521:XE";<NEW_LINE>// jdbc:oracle:thin:@//hostname:port/serviceName<NEW_LINE>String host = maker.before(':').valu...
= new ArrayList<>(1);
844,461
public ServiceContext serviceFromThrift(final Service service) {<NEW_LINE>final String name = mangleJavaTypeName(service.getName());<NEW_LINE>final SwiftJavaType javaType = typeRegistry.findType(<MASK><NEW_LINE>final SwiftJavaType parentType = typeRegistry.findType(defaultNamespace, service.getParent().orNull());<NEW_L...
defaultNamespace, service.getName());
339,355
private boolean checkEtag(HttpServerExchange exchange, GridFSFile dbsfile) {<NEW_LINE>if (dbsfile != null) {<NEW_LINE>Object etag;<NEW_LINE>if (dbsfile.getMetadata() != null && dbsfile.getMetadata().containsKey("_etag")) {<NEW_LINE>etag = dbsfile.<MASK><NEW_LINE>} else {<NEW_LINE>etag = null;<NEW_LINE>}<NEW_LINE>if (et...
getMetadata().get("_etag");
1,143,258
public void marshall(FirewallDomainList firewallDomainList, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (firewallDomainList == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(firewallDomainList.getId(), ID...
firewallDomainList.getModificationTime(), MODIFICATIONTIME_BINDING);
358,307
private Position parseTg2Report(DeviceSession deviceSession, ByteBuf buf, int sequenceNumber) {<NEW_LINE>Position position = new Position(getProtocolName());<NEW_LINE>position.setValid(true);<NEW_LINE>position.set(Position.KEY_INDEX, sequenceNumber);<NEW_LINE>position.setDeviceId(deviceSession.getDeviceId());<NEW_LINE>...
(buf.readUnsignedIntLE()));
254,348
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>// Set the result to CANCELED. This will cause the widget host to cancel<NEW_LINE>// out of the widget placement if the user presses the back button.<NEW_LINE>setResult(RESULT_CANCELED);<NEW_LINE>setContentView(R.la...
mApplication = (Simplenote) getApplicationContext();
1,170,473
public void repairJob(int nodeId) {<NEW_LINE>VAdminProto.RepairJobRequest.Builder repairJobRequest = VAdminProto.RepairJobRequest.newBuilder();<NEW_LINE>VAdminProto.VoldemortAdminRequest adminRequest = VAdminProto.VoldemortAdminRequest.newBuilder().setRepairJob(repairJobRequest).setType(VAdminProto.AdminRequestType.REP...
getAdminPort(), RequestFormatType.ADMIN_PROTOCOL_BUFFERS);
12,493
private FunctionWrapper wrapper(WebRequest request) {<NEW_LINE>FunctionInvocationWrapper function = (FunctionInvocationWrapper) request.getAttribute(<MASK><NEW_LINE>FunctionWrapper wrapper = new FunctionWrapper(function);<NEW_LINE>for (String key : request.getParameterMap().keySet()) {<NEW_LINE>wrapper.getParams().addA...
WebRequestConstants.HANDLER, WebRequest.SCOPE_REQUEST);
1,770,902
private void buildPopMenu() {<NEW_LINE>if (mGroupInfo == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>BottomSelectSheet sheet = new BottomSelectSheet(getContext());<NEW_LINE>List<String> stringList = new ArrayList<>();<NEW_LINE>String addMember = getResources().getString(R.string.add_group_member);<NEW_LINE>String remo...
getString(R.string.remove_group_member);
1,454,258
static // loads the curve settings CSV file<NEW_LINE>Map<CurveName, LoadedCurveSettings> parseCurveSettings(CharSource settingsResource) {<NEW_LINE>ImmutableMap.Builder<CurveName, LoadedCurveSettings> builder = ImmutableMap.builder();<NEW_LINE>CsvFile csv = CsvFile.of(settingsResource, true);<NEW_LINE>for (CsvRow row :...
dayCount, interpolator, leftExtrap, rightExtrap);
523,613
public Slop toObject(byte[] bytes) {<NEW_LINE>DataInputStream input = new <MASK><NEW_LINE>try {<NEW_LINE>VSlopProto.Slop proto = ProtoUtils.readToBuilder(input, VSlopProto.Slop.newBuilder()).build();<NEW_LINE>String storeName = proto.getStore();<NEW_LINE>Slop.Operation op = Slop.Operation.valueOf(proto.getOperation());...
DataInputStream(new ByteArrayInputStream(bytes));
1,040,062
public synchronized Lookup createAdditionalLookup(Lookup baseLookup) {<NEW_LINE>project = baseLookup.lookup(Project.class);<NEW_LINE>ic = new InstanceContent();<NEW_LINE>persistenceProviderSupplier = new PersistenceProviderSupplierImpl(project);<NEW_LINE>mavenWebProjectWebRootProvider = new WebProjectWebRootProvider(pr...
log(Level.WARNING, "When the second InstanceContent was created, the StackTrace was: \n\n");
1,423,009
public static final UmaConfiguration create(KeycloakSession session) {<NEW_LINE>WellKnownProvider oidcProvider = session.getProvider(WellKnownProvider.class, OIDCWellKnownProviderFactory.PROVIDER_ID);<NEW_LINE>OIDCConfigurationRepresentation oidcConfig = OIDCConfigurationRepresentation.class.cast(oidcProvider.getConfig...
setAuthorizationEndpoint(oidcConfig.getAuthorizationEndpoint());
157,724
private List<InventoryLineCandidate> prepareCandidates(final HuId topLevelHuId, final IAllocationRequest request) {<NEW_LINE>final List<InventoryLineCandidate> candidates = new ArrayList<>();<NEW_LINE>for (final I_M_InOutLine receiptLine : getReceiptLinesOrEmpty(topLevelHuId, request.getProductId())) {<NEW_LINE>final i...
hu = handlingUnitsDAO.getById(topLevelHuId);